You must be logged in to view saved presets
Configures an S3 bucket with an access point and sets up metrics filtered by access point and tags.
resource "aws_s3_access_point" "example-access-point" {
bucket = aws_s3_bucket.example.id
name = "example-access-point"
}
resource "aws_s3_bucket" "example" {
bucket = "example"
}
resource "aws_s3_bucket_metric" "example-filtered" {
bucket = aws_s3_bucket.example.id
filter {
access_point = aws_s3_access_point.example-access-point.arn
tags = {
class = "blue"
priority = "high"
}
}
name = "ImportantBlueDocuments"
}