Skip to content

extra_policy_arns: Document module variable in README.md #52

@paulmscribd

Description

@paulmscribd

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions