aws sts assume-role
is a pain because it requires parsing the output and passing the parsed credentials to the subsequent command.
aws-assume-run
launches a subprocess with AWS IAM assumed role credentials. Think envconsul for AWS IAM Roles.
go get -u github.com/fundingcircle/aws-assume-run
aws-assume-run [role-arn-to-assume] [cmd] [params...]
Access s3 bucket via role
aws-assume-run arn:aws:iam::121634321:role/bucket-reader aws s3 ls bucket-role-has-access-to
Update a kubeconfig for a cluster in another account.
aws-assume-run arn:aws:iam::121634321:role/eks-service-role aws eks update-kubeconfig --name dev-eks
Build for release.
make VERSION=v1.0.1 release -j2