An enterprise wants to improve the security posture of an existing application running on Amazon EC2 instances in a private subnet of VPC A (Account A). The application needs to securely upload objects to an Amazon S3 bucket located in Account B. The objects in the S3 bucket must be encrypted at rest, and the encryption key must be managed securely with cross-account access. The network path to the S3 bucket must not traverse the public internet. Which two actions should the Solutions Architect take to meet these security requirements?
- Create a Customer Managed Key (CMK) in Account B, and configure its key policy to grant the EC2 IAM role in Account A permissions to perform KMS cryptographic operations.Cevap
- Create an Amazon S3 Interface VPC Endpoint in VPC A, and update the S3 bucket policy in Account B to restrict access to requests originating from that specific VPC endpoint ID.Cevap
- CConfigure default S3 bucket encryption in Account B using the AWS-managed KMS key for S3, and update its key policy to allow cross-account access for the IAM role in Account A.
- DAttach a Service Control Policy (SCP) to the Organizational Unit containing Account B to explicitly allow the EC2 IAM role in Account A to access the bucket, removing the need for a local IAM policy.
- ECreate a Route 53 Private Hosted Zone in Account B for the S3 service, associate it with the VPC in Account A, and configure Route 53 Resolver rules to route S3 traffic.
Cevap
To meet the requirements, the Solutions Architect must create a Customer Managed Key in Account B and grant cross-account permissions to the EC2 IAM role in Account A, and create an Amazon S3 Interface VPC Endpoint in VPC A while restricting Account B's bucket policy to requests originating from that VPC endpoint.
Creating a Customer Managed Key in Account B allows you to modify the key policy to permit the IAM role from Account A to perform cryptographic operations. Combining this with an Amazon S3 Interface VPC Endpoint in VPC A and restricting the bucket policy in Account B to that endpoint ID ensures that traffic remains private and only flows through the designated endpoint.
Adım Adım Çözüm
Anahtar Kavram
Cross-account KMS and S3 private connectivity using VPC endpoints.
Tahmini Süre:2m 0s