This template creates an advanced S3 StorageLens configuration that enables advanced metrics, Amazon CloudWatch publishing, and prefix aggregation. It includes an exclusion for two S3 buckets `source_bucket_1` and `source_bucket_2`. Finally it configures a metrics export to S3 bucket `destination_bucket` and adds tags.

StorageLensConfigurationExample
AWS::S3::StorageLens


StorageLensConfiguration *
AccountLevel *
ActivityMetrics
AdvancedCostOptimizationMetrics
AdvancedDataProtectionMetrics
BucketLevel *
ActivityMetrics
AdvancedCostOptimizationMetrics
AdvancedDataProtectionMetrics
DetailedStatusCodesMetrics
PrefixLevel
StorageMetrics *
SelectionCriteria
DetailedStatusCodesMetrics
AwsOrg
DataExport
CloudWatchMetrics
S3BucketDestination
Encryption
SSEKMS
Exclude

Buckets

Regions

Include

Buckets

Regions

Tags

CloudFormation Template

Share Template