A solutions architect is configuring AWS CloudTrail in a member account to deliver log files to a centralized Amazon S3 bucket in a dedicated security account. The log delivery is currently failing. Which configuration must be applied to the S3 bucket in the security account to allow CloudTrail to write the logs?
- Configure the S3 bucket policy in the security account to allow the CloudTrail service principal (cloudtrail.amazonaws.com) to perform the s3:PutObject action.Cevap
- BConfigure the S3 bucket policy in the security account to grant access to the member account's root user principal, relying on the member account to delegate permissions to CloudTrail.
- CAttach a Service Control Policy (SCP) to the Organizational Unit (OU) of the member account that grants the s3:PutObject action on the centralized S3 bucket.
- DConfigure default encryption on the centralized S3 bucket using the AWS managed key (aws/s3) and grant CloudTrail permissions to use this key.
Cevap
Configure the S3 bucket policy in the security account to allow the CloudTrail service principal (cloudtrail.amazonaws.com) to perform the s3:PutObject action.
The correct configuration requires modifying the S3 bucket policy in the security account to grant the s3:PutObject permission directly to the CloudTrail service principal (cloudtrail.amazonaws.com). Since CloudTrail writes logs as an AWS service principal, a direct resource-based policy trust must be established on the destination bucket.
Adım Adım Çözüm
Anahtar Kavram
Cross-account resource sharing and service principal access delegation in AWS.
Tahmini Süre:1m 30s