Difference between revisions of "Terraform resource: aws s3 bucket versioning"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 19: Line 19:
 
</pre>
 
</pre>
  
 
+
== Related ==
[[Terraform resource: aws s3 bucket]]
+
* [[Terraform resource: aws_s3_bucket]]
  
  
 
== See also ==
 
== See also ==
 +
* {{aws_s3_bucket}}
 
* {{tf s3}}
 
* {{tf s3}}
  
 
[[Category:Terraform]]
 
[[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]

Advertising: