Skip to content

Shutdown droplet#719

Merged
scotchneat merged 4 commits intodigitalocean:mainfrom
scotchneat:shutdown-droplet
Oct 6, 2021
Merged

Shutdown droplet#719
scotchneat merged 4 commits intodigitalocean:mainfrom
scotchneat:shutdown-droplet

Conversation

@scotchneat
Copy link
Copy Markdown
Contributor

Submitting this PR to get @gouyelliot 's changes from #658 merged with some extra fixes to an affected test.

From their PR:

Currently, the provider directly delete the droplet on a destroy or replace operation, which might result in a loss of data in some our apps.

I've added a simple param allowing to gracefully shutting down the droplet before deleting it.

@andrewsomething
Copy link
Copy Markdown
Member

Would be great to get a line added to the docs for this too https://github.com/digitalocean/terraform-provider-digitalocean/blob/main/docs/resources/droplet.md#argument-reference

Copy link
Copy Markdown
Member

@andrewsomething andrewsomething left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM!

@scotchneat scotchneat merged commit cd7d00a into digitalocean:main Oct 6, 2021
@scotchneat scotchneat deleted the shutdown-droplet branch October 6, 2021 21:57
atombrella pushed a commit to atombrella/terraform-provider-digitalocean that referenced this pull request Oct 10, 2021
* Add graceful_shutdown to droplet resource to properly shutdown droplet before destroying it

* Add test for graceful_shutdown on droplet resource

* Adds new attribute to ignore list.

* Update documentation and fix an issue with rebase

Co-authored-by: Elliot Gouy <gouy.elliot@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants