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

Option to snapshot disk before destroy #1376

Closed
tammersaleh opened this issue Apr 24, 2018 · 4 comments
Closed

Option to snapshot disk before destroy #1376

tammersaleh opened this issue Apr 24, 2018 · 4 comments

Comments

@tammersaleh
Copy link
Contributor

tammersaleh commented Apr 24, 2018

Affected Resource(s)

  • google_compute_instance

Much like hashicorp/terraform-provider-aws#2715, I'd love to see a termination_snapshot_name option that takes a final snapshot before destroying a disk. I imagine this makes most sense as an option under the boot_disk and attached_disk structures on google_compute_instance, but I could also see it being an option on google_compute_disk, directly.

This should kick off snapshots any time GCP intends to deprovision the disk, including when the attached instance is decommissioned, and the user hasn't yet learned to set auto_delete to false.

@johananl
Copy link

I can take this one, too.

@mitj04
Copy link

mitj04 commented Dec 22, 2022

b/263474622

@rileykarson
Copy link
Collaborator

This is a significant amount of client code for an entirely custom behaviour. I don't think we'd want to make a change of this type- this would make sense in the API layer.

@github-actions
Copy link

I'm going to lock this issue 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 similar to this, 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 May 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants