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 remove_instance_on_destroy option to per-compute instance config resources #16729

Conversation

modular-magician
Copy link
Collaborator

It's a bit counterintuitive that creating a per-instance config in an IGM spins up an instance but destroying it leaves the instance behind.

Also fixed a bug related to the operation to detach the disk from the instance failing due to the instance having been deleted. Other than the tests for the new per-instance config behavior, I was unable to devise an isolated test to trigger this issue.

Fixes #9042 & #16621.

compute: added `remove_instance_on_destroy` option to `google_compute_per_instance_config` resource
compute: added `remove_instance_on_destroy` option to `google_compute_region_per_instance_config` resource

Derived from GoogleCloudPlatform/magic-modules#9588

…resources (hashicorp#9588)

It's a bit counterintuitive that creating a per-instance config in an IGM
spins up an instance but destroying it leaves the instance behind.

Also fixed a bug related to the operation to detach the disk from the
instance failing due to the instance having been deleted. Other than
the tests for the new per-instance config behavior, I was unable to
devise an isolated test to trigger this issue.

Fixes hashicorp#9042 & hashicorp#16621.
[upstream:4153866aaf018b769837b565a1088095fb25ae61]

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit 2921f09 into hashicorp:main Dec 7, 2023
Copy link

github-actions bot commented Jan 7, 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 Jan 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant