A company wants to provide its developers with access to a shared development environment in AWS. The developers are in different AWS accounts, and they need to assume an IAM role in the development account. What is the secure way to allow cross-account access?
Trap 1: Use a service control policy to allow access from other accounts
SCPs do not grant access; they restrict permissions.
Trap 2: Create IAM users in the development account for each developer
This requires managing users across accounts and is not scalable.
Trap 3: Share the access keys of an IAM user in the development account
Sharing access keys is a security risk.
- A
Use a service control policy to allow access from other accounts
Why wrong: SCPs do not grant access; they restrict permissions.
- B
Create IAM users in the development account for each developer
Why wrong: This requires managing users across accounts and is not scalable.
- C
Share the access keys of an IAM user in the development account
Why wrong: Sharing access keys is a security risk.
- D
Create an IAM role in the development account with a trust policy that allows the developers' accounts to assume it
This follows AWS best practices for cross-account access.