A SysOps Administrator created a new trail in AWS CloudTrail to log API activity across an AWS account and configured it to deliver log files to a newly created Amazon S3 bucket. A few hours later, the administrator notices that no log files have been delivered to the S3 bucket. Which of the following configuration issues is the most likely cause of this failure?
- The S3 bucket policy does not grant the CloudTrail service principal permission to perform the s3:PutObject action on the bucket.Cevap
- BThe IAM identity used to create the trail is missing the iam:PassRole permission to pass the CloudTrail service role.
- CThe AWS account is missing an Amazon EventBridge rule to route CloudTrail events from the default event bus to the destination S3 bucket.
- DThe CloudTrail trail is configured with standard monitoring instead of detailed monitoring, which prevents automatic log file delivery.
Cevap
The destination S3 bucket policy does not grant the CloudTrail service principal permission to perform the s3:PutObject action on the bucket.
AWS CloudTrail writes log files directly to the destination Amazon S3 bucket by assuming the CloudTrail service principal identity. To allow this, the S3 bucket policy must contain a statement that grants the 'cloudtrail.amazonaws.com' service principal permission to perform 's3:PutObject' and 's3:GetBucketAcl' actions. If these permissions are missing, CloudTrail cannot deliver the logs, resulting in empty buckets.
Adım Adım Çözüm
Anahtar Kavram
AWS CloudTrail log delivery requires the destination S3 bucket policy to grant s3:PutObject permissions to the cloudtrail.amazonaws.com service principal.
Tahmini Süre:45s