diff --git a/static-web-site/main.tf b/static-web-site/main.tf index 746489e..f17a939 100644 --- a/static-web-site/main.tf +++ b/static-web-site/main.tf @@ -21,6 +21,16 @@ resource "aws_s3_bucket" "this" { } } + +resource "aws_s3_bucket_versioning" "this" { + bucket = aws_s3_bucket.this.id + + versioning_configuration { + status = "Enabled" + } +} + + resource "aws_s3_bucket_object" "this" { bucket = aws_s3_bucket.this.id key = "index.html" @@ -61,5 +71,4 @@ resource "aws_s3_bucket_policy" "this" { }, ] }) -} - +} \ No newline at end of file