terraform/website/source/docs/providers/aws/r/s3_bucket.html.markdown

733 B

layout page_title sidebar_current description
aws AWS: aws_s3_bucket docs-aws-resource-s3-bucket Provides a S3 bucket resource.

aws_s3_bucket

Provides a S3 bucket resource.

Example Usage

resource "aws_s3_bucket" "b" {
    bucket = "my_tf_test_bucket"
    acl = "private"

    tags {
        Name = "My bucket"
        Environment = "Dev"
    }
}

Argument Reference

The following arguments are supported:

  • bucket - (Required) The name of the bucket.
  • acl - (Optional) The canned ACL to apply. Defaults to "private".
  • tags - (Optional) A mapping of tags to assign to the bucket.

Attributes Reference

The following attributes are exported:

  • id - The name of the bucket