Aws-codebuild-docker-images: AWS_SESSION_TOKEN for aws-codebuild-local

Created on 14 Jan 2019  路  3Comments  路  Source: aws/aws-codebuild-docker-images

I've not been able to get codebuild_build.sh to work with AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, andAWS_SESSION_TOKEN but only with ~/.aws/config and ~/.aws/credentials, despite the codebuild_build.sh -c option saying it will read all AWS_ environmental variables. My use case is that my buildspec.yml file is running Packer, and I want to use STS-derived credentials instead of an IAM user's keys (MFA is required for admin-like privileges, and I'd like to assume the same role that CodeBuild will use when running on AWS). Is this supported?

feature request

Most helpful comment

Hi @alanthing , please use the latest version of the local agent. SHA: 7cae4f31566fc8a0411b79af5c5dbab144b53e30e25d20bff0320e0f68053678

All 3 comments

@alanthing - This is not supported today. Thanks for reporting that. We'll add this feature in a future release.

Hi @alanthing , please use the latest version of the local agent. SHA: 7cae4f31566fc8a0411b79af5c5dbab144b53e30e25d20bff0320e0f68053678

@subinataws @awszhen works as intended, thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

npetter picture npetter  路  5Comments

a-h picture a-h  路  5Comments

anilmujagic picture anilmujagic  路  5Comments

joekiller picture joekiller  路  6Comments

NotErickG picture NotErickG  路  3Comments