Skip to content

Commit

Permalink
Terraform fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Likkan Chung committed Oct 28, 2023
1 parent 885c2c4 commit 4363455
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ module "static-website-files" {

resource "aws_s3_bucket" "dev-s3-static-website" {
bucket = "dev-s3-static-website"
acl = "public-read"
policy = jsonencode({
"Version" : "2012-10-17",
"Statement" : [
Expand All @@ -33,6 +32,11 @@ resource "aws_s3_bucket" "dev-s3-static-website" {
})
}

resource "aws_s3_bucket_acl" "dev-s3-static-website-acl" {
bucket = aws_s3_bucket.dev-s3-static-website.id
acl = "public-read"
}

resource "aws_s3_bucket_website_configuration" "dev-s3-static-website-config" {
bucket = aws_s3_bucket.dev-s3-static-website.id
index_document {
Expand Down

0 comments on commit 4363455

Please sign in to comment.