A company has multiple AWS accounts managed under AWS Organizations. The security audit team in the central audit account needs read-only access to Amazon S3 buckets containing CloudTrail logs in all member accounts. A solutions architect must configure this access securely following the principle of least privilege. Which TWO actions should the solutions architect take to meet these requirements? (Select TWO.)
- Create an IAM role in each member account with a trust policy that trusts the central audit account, and attach a policy allowing read-only access to the S3 buckets.Cevap
- Grant permissions to the security audit team members in the central audit account to assume the IAM roles in the member accounts.Cevap
- CCreate individual IAM users in each member account for every security auditor and generate permanent access keys for their access.
- DDistribute the AWS account root user credentials of each member account to the security audit team to allow unrestricted read access.
- EStore the security audit team's access keys in Systems Manager Parameter Store as plaintext String parameters for programmatic access.
Cevap
The solutions architect should create an IAM role in each member account that trusts the central audit account and allows read-only access to the S3 buckets. Additionally, the security audit team members in the central audit account must be granted permissions to assume those roles.
Establishing cross-account access securely involves creating an IAM role in the target (member) accounts with a trust policy that trusts the trusted (audit) account, along with a permissions policy granting read-only S3 access. Additionally, users in the trusted account must be granted permissions to assume that cross-account role.
Adım Adım Çözüm
Anahtar Kavram
Cross-account access using IAM roles allows users from one AWS account to access resources in another AWS account securely without creating duplicate IAM users or using long-term credentials.