A software-as-a-service (SaaS) provider needs to periodically analyze resource configurations stored in an Amazon S3 bucket within a customer's AWS account. The customer wants to grant this access to the provider's AWS account securely without creating or exchanging permanent IAM credentials. Which of the following is the AWS-recommended best practice to achieve this?
- ACreate a dedicated IAM user with programmatic access, attach an S3 read-only policy, and share the access key ID and secret access key with the provider.
- BEstablish an AWS Direct Connect connection between the provider and customer networks to automatically authorize data access based on physical port security.
- Create an IAM role with a trust policy that allows the provider's AWS account to assume it, and attach a permissions policy that grants read-only access to the S3 bucket.Cevap
- DGenerate temporary security credentials using the customer account's root user and configure the provider's applications to use these root credentials.
Cevap
Create an IAM role with a trust policy that allows the provider's AWS account to assume it, and attach a permissions policy that grants read-only access to the S3 bucket.
The most secure method is to create an IAM role in the customer's account that trusts the provider's AWS account. This role has a trust policy allowing the provider to assume it and a permissions policy that grants read-only S3 access. This setup uses short-lived, temporary security credentials and avoids the exchange of long-term credentials.
Adım Adım Çözüm
Anahtar Kavram
IAM Roles for cross-account access provide a secure way to grant third-party entities access to AWS resources using temporary security credentials instead of sharing long-term IAM user credentials or root account details.