Skip to content

Instantly share code, notes, and snippets.

@hasheddan
Last active January 26, 2021 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hasheddan/900d5c54aab247b7b6129a5d17c9cde3 to your computer and use it in GitHub Desktop.
Save hasheddan/900d5c54aab247b7b6129a5d17c9cde3 to your computer and use it in GitHub Desktop.
apiVersion: aws.crossplane.io/v1beta1
kind: ProviderConfig
metadata:
name: from-fs
spec:
credentials:
source: Fs
fs:
path: /crossplane/secrets/aws-creds.txt
---
apiVersion: aws.crossplane.io/v1beta1
kind: ProviderConfig
metadata:
name: from-env
spec:
credentials:
source: Env
env:
name: MY_AWS_CREDS
---
# See https://github.com/aws/amazon-eks-pod-identity-webhook/issues/32#issuecomment-588113740
apiVersion: aws.crossplane.io/v1beta1
kind: ProviderConfig
metadata:
name: other-irsa
spec:
credentials:
source: InjectedIdentity
env:
name: AWS_ROLE_ARN_2
---
# See https://github.com/aws/amazon-eks-pod-identity-webhook/issues/32#issuecomment-588113740
apiVersion: aws.crossplane.io/v1beta1
kind: ProviderConfig
metadata:
name: other-irsa
spec:
credentials:
source: InjectedIdentity
irsaOverrides:
awsRoleArnEnvVar: AWS_ROLE_ARN_WEST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment