AWS Assume Role
We currently in an AWS environment. We have multiple AWS accounts. Our team city build agent currently runs on an EC2 machine. Everything works on the one account. We are able to build no problem. We have a IAM role set on the EC2 that is the build agent. The issue is, I am trying to run AWS CLI commands on another account. The right way to do this would be to assume the role on the other account. Is anyone currently doing this? Do we need to like create a CLI script that runs on command prompt to assume the role and add it in the build step. Any Ideas would be great.
Please sign in to leave a comment.
Hello!
What is your use case for this scenario? Why don't you create a specific role for the actions you intend to perform and add it to the other service account? Unless your use case or security policies of your organization require the use of assume role of course.
Thanks,
Guilherme