A digital banking application hosts its core processing engine on Amazon ECS tasks inside a private subnet of VPC-A in Account A. The application must retrieve daily financial statements from an Amazon S3 bucket in Account B. The S3 bucket is encrypted using SSE-KMS.
To comply with new security mandates, a solutions architect must implement the following changes:
1. Ensure all S3 data transfer is routed privately through an S3 Interface VPC Endpoint (vpce-s3-interface) in VPC-A, and all KMS decryption requests route privately through a KMS Interface VPC Endpoint (vpce-kms) in VPC-A.
2. Restrict access to the S3 bucket and the KMS key so that they only accept requests originating from their respective VPC endpoints in VPC-A.
3. Prevent any IAM identity in the organization from modifying or deleting the S3 bucket policy, with the sole exception of a break-glass IAM role (AdminRole) in Account B.
Which combination of actions will meet these requirements?
- AConfigure the S3 bucket to use the default AWS-managed key (aws/s3) for encryption. Update the S3 bucket policy to allow the ECS task IAM role in Account A to read objects, restricted by a condition for vpce-s3-interface. Modify the aws/s3 key policy in Account B to allow the ECS task role to decrypt objects, restricted by a condition for vpce-kms. Attach an SCP to the OU containing Account B that denies s3:PutBucketPolicy and s3:DeleteBucketPolicy unless the principal is the AdminRole.
- Configure the S3 bucket to use a Customer Managed Key (CMK) in Account B for encryption. Update the S3 bucket policy to allow the ECS task IAM role in Account A to read objects, restricted by a condition for vpce-s3-interface. Update the KMS CMK key policy in Account B to allow the ECS task role to perform kms:Decrypt and kms:GenerateDataKey, restricted by a condition for vpce-kms. Attach an SCP to the OU containing Account B that denies s3:PutBucketPolicy and s3:DeleteBucketPolicy on the bucket, using a condition that excludes the AdminRole from the Deny effect.Cevap
- CConfigure the S3 bucket to use a Customer Managed Key (CMK) in Account B for encryption. Update the S3 bucket policy to allow the ECS task IAM role in Account A to read objects, restricted by a condition for vpce-s3-interface. Update the KMS CMK key policy in Account B to allow the ECS task role to perform kms:Decrypt and kms:GenerateDataKey, restricted by a condition for vpce-kms. Attach an SCP to the OU containing Account B that unconditionally denies s3:PutBucketPolicy and s3:DeleteBucketPolicy on the bucket, relying on the local administrator permissions of AdminRole to override the organization-level SCP.
- DConfigure the S3 bucket to use a Customer Managed Key (CMK) in Account B for encryption. Update the S3 bucket policy to allow the ECS task IAM role in Account A to read objects, restricted by a condition for vpce-s3-interface. Update the KMS CMK key policy in Account B to allow the ECS task role to perform kms:Decrypt and kms:GenerateDataKey, restricted by a condition for vpce-kms. Host a Route 53 Private Hosted Zone (PHZ) for the S3 and KMS interface VPC endpoints in Account B to manage private resolution, but do not associate this PHZ with VPC-A. Attach an SCP to the OU containing Account B that denies s3:PutBucketPolicy and s3:DeleteBucketPolicy unless the principal is the AdminRole.