Difference between revisions of "Terraform resource: aws s3 bucket versioning"
Jump to navigation
Jump to search
(Created page with " Terraform resource: aws s3 bucket") |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | * https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket | ||
+ | <pre> | ||
+ | resource "aws_s3_bucket" "example" { | ||
+ | bucket = "example-bucket" | ||
+ | } | ||
+ | resource "aws_s3_bucket_acl" "example" { | ||
+ | bucket = aws_s3_bucket.example.id | ||
+ | acl = "private" | ||
+ | } | ||
− | [[Terraform resource: | + | resource "aws_s3_bucket_versioning" "versioning_example" { |
+ | bucket = aws_s3_bucket.example.id | ||
+ | versioning_configuration { | ||
+ | status = "Enabled" | ||
+ | } | ||
+ | } | ||
+ | </pre> | ||
+ | |||
+ | == Related == | ||
+ | * [[Terraform resource: aws_s3_bucket]] | ||
+ | |||
+ | |||
+ | == See also == | ||
+ | * {{aws_s3_bucket}} | ||
+ | * {{tf s3}} | ||
+ | |||
+ | [[Category:Terraform]] |
Latest revision as of 10:48, 8 November 2023
resource "aws_s3_bucket" "example" { bucket = "example-bucket" } resource "aws_s3_bucket_acl" "example" { bucket = aws_s3_bucket.example.id acl = "private" } resource "aws_s3_bucket_versioning" "versioning_example" { bucket = aws_s3_bucket.example.id versioning_configuration { status = "Enabled" } }
Related[edit]
See also[edit]
- Terraform s3:
aws_s3_bucket, aws_s3_bucket_notification
- Terraform S3 resources:
aws_s3_bucket, aws_s3_object, aws_s3_bucket_policy, aws_s3_bucket_acl, aws_s3_bucket_website_configuration, aws_s3_bucket cors_configuration, aws_s3_account_public_access_block
, Terraform module: s3-bucket,aws_s3_bucket_versioning, aws_s3_bucket_server_side_encryption_configuration, aws_s3_bucket_logging
Advertising: