-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Added in an August, 2021 change, the extra_policy_arns
module variable offers one way to support the optional Datadog / AWS CloudTrail integration.
The implementation's use of for_each
may, however, lead to errors of the form:
│ Error: Invalid for_each argument
[...]
│ NNN: for_each = toset(var.extra_policy_arns)
│ ├────────────────
│ │ var.extra_policy_arns is list of string with 1 element
│
│ The "for_each" value depends on resource attributes that cannot be determined
│ until apply, so Terraform cannot predict how many instances will be created.
│ To work around this, use the -target argument to first apply only the
│ resources that the for_each depends on.
which I think we should alert users to.
Metadata
Metadata
Assignees
Labels
No labels