Configures intelligent tiering for an entire S3 bucket to automatically move objects between different storage tiers based on their access patterns.

Terraform Template

resource "aws_s3_bucket" "example" {
  bucket = "example"
}

resource "aws_s3_bucket_intelligent_tiering_configuration" "example-entire-bucket" {
  bucket = aws_s3_bucket.example.id
  name = "EntireBucket"

  tiering {
    access_tier = "DEEP_ARCHIVE_ACCESS"
    days = 180
  }

  tiering {
    access_tier = "ARCHIVE_ACCESS"
    days = 125
  }
}