-
Notifications
You must be signed in to change notification settings - Fork 565
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
use for_each instead of count to create resource #86
use for_each instead of count to create resource #86
Conversation
Thanks for the PR! 🚀 |
running integration tests locally but it's taking a long time as I'm seeing the following:
Since the docker image from which the tests are ran already comes with gcloud pre-installed it would be nice if the installed version was sufficient to avoid the extra download during a test run |
@adrian-gierakowski Newer versions avoid that. This is the error in tests:
|
This prevents unnencesary recreation of resources when content/order of the names list changes. Addresses issue mentioned in: https://github.com/terraform-google-modules/cloud-foundation-fabric/tree/73b7613cc062491305ebfabf8a8b1db0c53fc55b/foundations#things-to-be-aware-of WARNING: this is a breaking change as the terraform state created before this change will be incompatible with state expected after the change. This can be fixed with `terraform state mv`.
8573f87
to
80b225f
Compare
@morgante integration tests are now passing, not sure about the other 2 jobs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adding this.
Before release, we'll also need an upgrade guide / script added like this one. |
This prevents unnencesary recreation of resources when content/order of the
names list changes.
Addresses issue mentioned in: https://github.com/terraform-google-modules/cloud-foundation-fabric/tree/73b7613cc062491305ebfabf8a8b1db0c53fc55b/foundations#things-to-be-aware-of