Skip to content

Instantly share code, notes, and snippets.

View krisnova's full-sized avatar
😅
busy keeping this website online

Kris Nóva krisnova

😅
busy keeping this website online
View GitHub Profile
@krisnova
krisnova / Terraform-Destroy-Provisioners.md
Last active January 20, 2018 20:04
Destroy Provisioners in Terraform

Destroy Provisioners in Terraform

Feature Spec - Issue #386

Terraform users would like to see Terraform support destroy provisioners that would run before a destroy action. There are many use cases documented in the terraform github issue #386 on how this would be helpful to users.

It seems the Terraform community has a shared consesus that custom destroy steps should be handled somehow with a terraform provisioner. This feature spec is an attempt to propose a solution to the following question.

What would be the best way to implement custom destroy action with provisioners?