We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c04f76 commit 4072c22Copy full SHA for 4072c22
main.tf
@@ -1,9 +1,12 @@
1
resource "aws_s3_bucket" "this" {
2
count = var.create_bucket ? 1 : 0
3
4
- bucket = var.bucket
5
- bucket_prefix = var.bucket_prefix
6
- acl = var.acl
+ bucket = var.bucket
+ bucket_prefix = var.bucket_prefix
+
7
+ # hack when `null` value can't be used (eg, from terragrunt, https://github.com/gruntwork-io/terragrunt/pull/1367)
8
+ acl = var.acl != "null" ? var.acl : null
9
10
tags = var.tags
11
force_destroy = var.force_destroy
12
acceleration_status = var.acceleration_status
0 commit comments