You must be logged in to view saved presets
Sets up analytics configuration for an S3 bucket with filters applied to specific objects based on prefix and tags.
resource "aws_s3_bucket" "example" {
bucket = "example"
}
resource "aws_s3_bucket_analytics_configuration" "example-filtered" {
bucket = aws_s3_bucket.example.id
filter {
prefix = "documents/"
tags = {
class = "blue"
priority = "high"
}
}
name = "ImportantBlueDocuments"
}