An enterprise manages its applications using separate AWS accounts for development and production. A developer in the development account needs to temporarily read logs from an Amazon S3 bucket located in the production account. Which of the following approaches represents the AWS-recommended security best practice to configure this cross-account access?
- Create an IAM role in the production account that grants read-only access to the S3 bucket, and configure a trust policy allowing the developer's identity in the development account to assume it.Cevap
- BCreate an identical IAM user in the production account with permanent access keys, and configure the developer's local tools to use these credentials.
- CEnable root user access in the production account and share the credentials with the developer to perform the analysis.
- DSubmit a request to AWS Support to move the S3 bucket into the development account, as AWS is responsible for configuring customer data boundaries.
Cevap
Create an IAM role in the production account that grants read-only access to the S3 bucket, and configure a trust policy allowing the developer's identity in the development account to assume it.
The correct option outlines the AWS-recommended way to grant cross-account access. By creating an IAM role in the production account with a trust policy that trusts the development account, the developer can assume the role temporarily. This avoids using permanent credentials and adheres to the principle of least privilege.
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 account securely via temporary security credentials.