Provides a resource to manage an S3 Control Bucket.
resource "aws_s3control_bucket" "example" {
bucket = "example"
outpost_id = data.aws_outposts_outpost.example.id
}
The following arguments are required:
bucket
- (Required) Name of the bucket.outpost_id
- (Required) Identifier of the Outpost to contain this bucket.tags
- (Optional) Key-value map of resource tags. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.This resource exports the following attributes in addition to the arguments above:
arn
- Amazon Resource Name (ARN) of the bucket.creation_date
- UTC creation date in RFC3339 format.id
- Amazon Resource Name (ARN) of the bucket.public_access_block_enabled
- Boolean whether Public Access Block is enabled.tags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.In Terraform v1.5.0 and later, use an import
block to import S3 Control Buckets using Amazon Resource Name (ARN). For example:
import {
to = aws_s3control_bucket.example
id = "arn:aws:s3-outposts:us-east-1:123456789012:outpost/op-12345678/bucket/example"
}
Using terraform import
, import S3 Control Buckets using Amazon Resource Name (ARN). For example:
% terraform import aws_s3control_bucket.example arn:aws:s3-outposts:us-east-1:123456789012:outpost/op-12345678/bucket/example