A financial transaction processor uses AWS Organizations to manage multiple member accounts. Under PCI-DSS compliance requirements, all payment gateway application logs must be secured and centrally archived. The payment gateway runs on Amazon ECS using AWS Fargate within a Production account (). These logs must be written directly to a centralized Amazon S3 bucket located in a Security Auditing account (). The S3 bucket is configured with default encryption using a customer-managed AWS KMS key (KMS CMK) to enforce security team control over key rotation and policies. The architecture must enforce the principle of least privilege, preventing unauthorized internal access from other accounts within the AWS Organization.
Which two configurations are required to establish this secure log transport?
- In the Security Auditing account (), configure the key policy of the Customer Managed KMS key to allow the Production account's ECS task role IAM principal () to perform `kms:GenerateDataKey` and `kms:Decrypt` actions. In the destination S3 bucket policy, allow the same ECS task role principal to perform `s3:PutObject` actions.Answer
- In the Production account (), attach an IAM policy to the ECS task role that grants `s3:PutObject` permissions on the destination S3 bucket in the Security Auditing account, and `kms:GenerateDataKey` and `kms:Decrypt` permissions on the KMS key ARN in the Security Auditing account.Answer
- CIn the Security Auditing account (), configure default S3 bucket encryption using the AWS-managed S3 key (`aws/s3`). In the Production account (), attach an IAM policy to the ECS task role allowing `kms:GenerateDataKey` on the `aws/s3` key resource in the Security Auditing account.
- DIn the AWS Organizations Management account, create and attach a Service Control Policy (SCP) to the Production account's Organizational Unit (OU) that grants `s3:PutObject` and `kms:GenerateDataKey` permissions to the ECS task role, thereby bypassing the need to create local IAM policies in the Production account.
- EIn the Security Auditing account (), configure the destination S3 bucket policy with a wildcard Principal (`"Principal": "*"`) and include a condition for `"StringEquals": {"aws:PrincipalOrgID": "o-exampleorgid"}` to allow any identity within the Organization to write logs, relying on the KMS key policy alone to restrict access to the ECS task role.