You must be logged in to view saved presets
Configures a daily inventory for specific objects within an S3 bucket, filtered by prefix, and stores the inventory in ORC format.
resource "aws_s3_bucket" "inventory" {
bucket = "my-tf-inventory-bucket"
}
resource "aws_s3_bucket" "test" {
bucket = "my-tf-test-bucket"
}
resource "aws_s3_bucket_inventory" "test-prefix" {
bucket = aws_s3_bucket.test.id
destination {
bucket {
bucket_arn = aws_s3_bucket.inventory.arn
format = "ORC"
prefix = "inventory"
}
}
filter {
prefix = "documents/"
}
included_object_versions = "All"
name = "DocumentsWeekly"
schedule {
frequency = "Daily"
}
}