Skip to content

Commit

Permalink
fix: ACL value can be null even when using Terragrunt (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbabenko authored Mar 22, 2021
1 parent 9c04f76 commit 4072c22
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
resource "aws_s3_bucket" "this" {
count = var.create_bucket ? 1 : 0

bucket = var.bucket
bucket_prefix = var.bucket_prefix
acl = var.acl
bucket = var.bucket
bucket_prefix = var.bucket_prefix

# hack when `null` value can't be used (eg, from terragrunt, https://github.com/gruntwork-io/terragrunt/pull/1367)
acl = var.acl != "null" ? var.acl : null

tags = var.tags
force_destroy = var.force_destroy
acceleration_status = var.acceleration_status
Expand Down

0 comments on commit 4072c22

Please # to comment.