pulumi_wasm_providers_aws_mini::s3

Module bucket_intelligent_tiering_configuration

source
Expand description

Provides an S3 Intelligent-Tiering configuration resource.

This resource cannot be used with S3 directory buckets.

§Example Usage

§Add intelligent tiering configuration for entire S3 bucket

resources:
  example-entire-bucket:
    type: aws:s3:BucketIntelligentTieringConfiguration
    properties:
      bucket: ${example.id}
      name: EntireBucket
      tierings:
        - accessTier: DEEP_ARCHIVE_ACCESS
          days: 180
        - accessTier: ARCHIVE_ACCESS
          days: 125
  example:
    type: aws:s3:BucketV2
    properties:
      bucket: example

§Add intelligent tiering configuration with S3 object filter

resources:
  example-filtered:
    type: aws:s3:BucketIntelligentTieringConfiguration
    properties:
      bucket: ${example.id}
      name: ImportantBlueDocuments
      status: Disabled
      filter:
        prefix: documents/
        tags:
          priority: high
          class: blue
      tierings:
        - accessTier: ARCHIVE_ACCESS
          days: 125
  example:
    type: aws:s3:BucketV2
    properties:
      bucket: example

§Import

Using pulumi import, import S3 bucket intelligent tiering configurations using bucket:name. For example:

$ pulumi import aws:s3/bucketIntelligentTieringConfiguration:BucketIntelligentTieringConfiguration my-bucket-entire-bucket my-bucket:EntireBucket

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments