Resource: aws_s3_directory_bucket

Provides an Amazon S3 Express directory bucket resource.

Example Usage

resource "aws_s3_directory_bucket" "example" {
  bucket = "example--usw2-az1--x-s3"

  location {
    name = "usw2-az1"
  }
}

Argument Reference

This resource supports the following arguments:

Location

The location block supports the following:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import an Amazon S3 Express directory bucket using bucket. For example:

import {
  to = aws_s3_directory_bucket.example
  id = "example--usw2-az1--x-s3"
}

Using terraform import, import S3 bucket using bucket. For example:

% terraform import aws_s3_directory_bucket.example example--usw2-az1--x-s3