Skip to content

Seção 5.26 - Buckets - Problema na operação do S3 PutBucketAcl #161

Answered by Gabriel-Moya
Gabriel-Moya asked this question in Q&A
Discussion options

You must be logged in to vote

Lendo a documentação no registry do s3_bucket_acl aqui, percebi que tem 4 parâmetros como false que no módulo estão como true, passando eles como false no módulo website e no redirect resolveu. ficou dessa forma abaixo.

module "website" {
  source        = "github.com/chgasparoto/terraform-s3-object-notification"
  name          = local.domain
  acl           = "public-read"
  policy        = {
    json = data.template_file.s3-bucket-policy.rendered
  }
  force_destroy = !local.has_domain
  block_public_acls       = false
  block_public_policy     = false
  ignore_public_acls      = false
  restrict_public_buckets = false

  versioning = {
    enabled = true
  }

  filepath = "${path.module}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Gabriel-Moya
Comment options

Answer selected by Gabriel-Moya
@chgasparoto
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants