A logistics enterprise manages its multi-account environment within AWS Organizations. The enterprise has established SAML 2.0-based federation with its on-premises identity provider (IdP) to allow database administrators to access target AWS member accounts. Once federated, the administrators must access database backups stored in a centralized Amazon S3 bucket within a shared services account. The S3 bucket is encrypted using the default AWS-managed key (aws/s3). Currently, when the administrators federate into their respective member accounts, they are unable to retrieve the backup files from the shared services account. Which combination of configuration adjustments will resolve these access issues?
- Configure the S3 bucket in the shared services account to use a customer managed KMS key, and update its key policy to grant decrypt permissions to the member account's federated IAM role. In the member accounts, ensure the IAM role trust policy trusts the SAML provider with the sts:AssumeRoleWithSAML action, and attach a local IAM policy to the role that grants read access to the S3 bucket.Cevap
- BApply a Service Control Policy (SCP) at the Organizational Unit (OU) level containing the member accounts that explicitly allows s3:GetObject and kms:Decrypt actions on the shared services account's resources. In the member accounts, configure the federated IAM role trust policy to trust the SAML provider with the sts:AssumeRoleWithSAML action, without attaching local IAM policies.
- CConfigure the S3 bucket in the shared services account to use a customer managed KMS key, and update its key policy to grant decrypt permissions to the member account's federated IAM role. In the member accounts, configure the IAM role trust policy to trust the SAML provider with the sts:AssumeRole action, and attach a local IAM policy to the role that grants read access to the S3 bucket.
- DModify the key policy of the AWS-managed key (aws/s3) in the shared services account to grant decrypt permissions to the member account's federated IAM role. In the member accounts, ensure the IAM role trust policy trusts the SAML provider with the sts:AssumeRoleWithSAML action, and attach a local IAM policy to the role that grants read access to the S3 bucket.
Cevap
Configure the S3 bucket in the shared services account to use a customer managed KMS key, update its key policy to allow the federated role in the member account to decrypt the data, configure the member account's federated IAM role trust policy to allow sts:AssumeRoleWithSAML, and attach a local IAM policy allowing S3 access.
The correct solution involves transitioning the central S3 bucket's encryption to a customer managed KMS key, which allows key policy modification for cross-account access. The member account's federated role trust policy must also be configured with the correct SAML action (sts:AssumeRoleWithSAML) and local S3/KMS permissions must be attached.
Adım Adım Çözüm
Anahtar Kavram
Cross-account access to encrypted S3 resources requires a customer managed KMS key combined with a correctly configured SAML trust policy utilizing sts:AssumeRoleWithSAML and local IAM policies.