Skip to content

Commit

Permalink
ajuste bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoclessa committed Jul 18, 2023
1 parent 80cf4d5 commit dfb25bf
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions template_s3/s3.tf
Original file line number Diff line number Diff line change
@@ -1,26 +1,17 @@
resource "aws_s3_bucket" "bucket" {
bucket = var.bucket
website {
index_document = "index.html"
error_document = "404.html"
}
tags = {
"Name" = "Site"
}
}
resource "aws_s3_bucket_website_configuration" "website" {
bucket = aws_s3_bucket.bucket.id

#resource "aws_s3_bucket_acl" "bucket_acl" {
# bucket = aws_s3_bucket.bucket.id
# acl = "public"
#}
index_document {
suffix = "index.html"
}

#resource "aws_s3_bucket_public_access_block" "bucket_public_access" {
# bucket = aws_s3_bucket.bucket.id
# block_public_acls = true
# block_public_policy = true
# ignore_public_acls = true
# restrict_public_buckets = true
#}
error_document {
key = "404.html"
}
}

resource "aws_s3_bucket_policy" "bucket_policy" {
bucket = aws_s3_bucket.bucket.id
Expand Down

0 comments on commit dfb25bf

Please sign in to comment.