-
Notifications
You must be signed in to change notification settings - Fork 570
feat!: Swap count for for_each on subnet IAM resources #1009
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
base: main
Are you sure you want to change the base?
feat!: Swap count for for_each on subnet IAM resources #1009
Conversation
…new subnet is added or removed in the host project
|
FWIW this has been tested internally. If any issues arise once someone kicks off the checks, feel free to @ me. |
|
Could someone tell me what failed in the |
|
@imrannayer - Forgive the ping but I see you are an active maintainer. Is there a preferable way to get the |
|
/gcbrun |
Now that this job actually ran, could I get someone to share why this failed? |
|
Hi @thatcoleyouknow , it failed when trying to apply the example |
As an engineer that works for an organization that adds new subnets on a regular basis, we find ourselves constantly having to review very lengthy Terraform plans that are full of
google_compute_subnetwork_iam_memberrecreations. This is partly due to Terraform lists being unordered but this can now be solved for by replacing thecountargument withfor_eachin each of those resources. This would be a one-time breaking change, but it would also make it the last time consumers have to deal subnet IAM grants getting recreated due to changes in the list of subnets passed to this module.If you all have any questions, concerns, or suggestions, I'd be happy to talk through those. I am also an enterprise customer so I can open a feature request with our TAM to try and help prioritize this, if that would help you all.
Thank you!