Skip to content

How do I manage cross account access with IAM Roles for Service Accounts? #156

Answered by yorinasub17
yorinasub17 asked this question in Help
Discussion options

You must be logged in to vote

The best way to address this is to allow direct access to the bucket to the prod account IAM role, using S3 bucket policies (https://aws.amazon.com/premiumsupport/knowledge-center/cross-account-access-s3/).

With that said, unfortunately, you won’t be able to get away from manually copying ARNs around, primarily because cross account output access in terragrunt is fairly tricky to implement cleanly. The best way to make this work is to make the IAM role name coded in a common data file that you import and pass to each account. Once you have that, you should be able to compute the IAM role arn used by the pod, since the IAM role arn is of the form arn:aws:iam:<ACCOUNT_ID>::role/<NAME>, where

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yorinasub17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
1 participant