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 3405d6c commit 1995c9eCopy full SHA for 1995c9e
src/main.tf
@@ -140,7 +140,9 @@ module "bucket_policy" {
140
source = "cloudposse/iam-policy/aws"
141
version = "1.0.1"
142
143
- iam_policy_statements = try(lookup(local.policy, "Statement"), null)
+ iam_policy = local.enabled ? {
144
+ statements = local.policy.Statement
145
+ } : null
146
147
context = module.this.context
148
}
0 commit comments