Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extra_policy_arns: Document module variable in README.md #52

Open
paulmscribd opened this issue Feb 16, 2023 · 0 comments
Open

extra_policy_arns: Document module variable in README.md #52

paulmscribd opened this issue Feb 16, 2023 · 0 comments

Comments

@paulmscribd
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant