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

Add fine grained resource for instance group membership #17188

Conversation

modular-magician
Copy link
Collaborator

Add fine-grained instance_group_membership resource as an alternative way of adding instance to an instance_group to avoid instance_group resource inconsistency after instance recreation.

This change will be added to both google and google-beta provider versions.

instance_group_membership accepts only instance and instance_group fields.

Bug: fixes #8605
Bug: #9930

Release Note Template for Downstream PRs (will be copied)

`google_compute_instance_group_membership`

Derived from GoogleCloudPlatform/magic-modules#9891

* Add  fine-grained resource

* Add InstanceGroupMembership resource

* add acceptance tests for the  resource

* Add message to the  resource

* Fix trailing spaces

* Fix trailing spaces

* Add zone to test

* Add zone to test

* Review fixes - change fields labels, update descriptions and indentation

* Undo mistake change

* Remove flatten from the encoder

* Remove "Region" prefix in the test files and decoder, as it could be replaces with the existingfill_to_relative_path custom_flatten

[upstream:40e92edbde12b2fe291c50860dfe2f06684d933d]

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit a5c8d01 into hashicorp:main Feb 5, 2024
2 checks passed
Copy link

github-actions bot commented Mar 9, 2024

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Manage instances of google_compute_instance_group in non-authoritative way
1 participant