v0.9.0
🤖 Automatic Updates
Update Terraform cloudposse/iam-policy/aws to v1.0.1 (main) @renovate (#46)
This PR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
cloudposse/iam-policy/aws (source) | module | patch | 1.0.0 -> 1.0.1 |
Release Notes
cloudposse/terraform-aws-iam-policy
v1.0.1
🚀 Enhancements
fix: support JSON inputs for policy document when IAM policy/statements are not set as Terraform objects @gberenice (#28)
what
- Consider JSON source policy documents in the recently added precondition block.
why
- It's expected to support JSON inputs while
var.iam_policy
andvar.iam_policy_statments
may remain unset. The precondition fails in this case:
│ Error: Resource precondition failed
│
│ on .terraform/modules/iam_policy/main.tf line 90, in data "aws_iam_policy_document" "this":
│ 90: condition = var.iam_policy_statements != null || var.iam_policy != null
│ ├────────────────
│ │ var.iam_policy is null
│ │ var.iam_policy_statements is null
│
│ Exactly 1 of var.iam_policy and var.iam_policy_statments may be used, preferably var.iam_policy.
references
- N/A