This CloudFormation template creates an S3 bucket and configures it with a CloudTrail trail to capture management events. It also sets up a bucket policy to allow CloudTrail to write logs to the bucket.

Trail
AWS::CloudTrail::Trail


EventSelectors
DataResources *

Values

ExcludeManagementEventSources

Bucket
AWS::S3::Bucket


BucketPolicy
AWS::S3::BucketPolicy


LogGroup
AWS::Logs::LogGroup


Role
AWS::IAM::Role


Policies

CloudFormation Template

Share Template