Travis CI with AWS 'assume role'

325 views Asked by At

Our AWS accounts are set up so that users login to one account, and then 'assume role' to different accounts to access various services.

We have TravisCI setup so that it runs an integration test against a test account, and then uploads a build artifact into S3.

Currently this is done using a single set of IAM user credentials with the user in the test account. I would like to move the user into a different account, and then have TravisCI assume the correct role in the test account to run the tests, and then assume a different role in another account to upload the build artifact. I do not want to add users to the accounts themselves.

I cannot see this functionality built in to the S3 deployment and have not had any luck finding anyone else trying to do this.

I think that this may be possible by dynamically populating environment variables during a setup phase, and then passing the variable on to later stages, but I cannot work out if this is possible.

Does anyone have assume role working with TravisCI?

0

There are 0 answers