by crschnick · 1y ago · 0 comments
So, if you just straight-up call `kubectl` within XPipe without having AWS credentials already available, then it would fail. So, I'm guessing this wouldn't work.
By default, it looks like this:
exec:
command: aws
args:
- --region
- us-east-2
- eks
- get-token
- --cluster-name
- my-cluster
but for us it would look like this: exec:
command: aws-vault
args:
- exec
- --region
- us-east-2
- my-vault-profile
- --
- aws
# likely not required, but I'm including it for "coding in a textarea" :-)
- --region
- us-east-2
- eks
- get-token
- --cluster-name
- my-cluster