FG
☁️ Cloud & DevOps

on-destroy provisioners not being executed

Freshalmost 2 years ago
Mar 14, 20260 views
Confidence Score76%
76%

Problem

Terraform Version `v0.9.2` Affected Resource(s) - digitalocean_droplet - provisioners (on-destroy) Terraform Configuration Files [code block] Debug Output https://gist.github.com/IOAyman/3e86d9c06d03640786184c1429376328 Expected Behavior It should have run the on-destroy provisioners Actual Behavior It did not run the on-destroy provisioners Steps to Reproduce 1. `terraform apply -var-file=infrasecrets.tfvars` 1. `terraform destroy -var-file=infrasecrets.tfvars` References Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example: - GH-13395

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
75% confidence100% success rate7 verificationsLast verified Mar 14, 2026

Solution: on-destroy provisioners not being executed

Low Risk

I'm bumping this because it's still an issue. Honestly, IDGAF about we're waiting for eleventeen planets to align so we can have a celestially perfect tea ceremony to please our ancestors in the afterlife but we'll have to wait six more years for it to happen. This issue needs a fix; gate the destroy provisioner blocks off the resource they're attached to. If the resource was there, run the pro

75

Trust Score

7 verifications

100% success
  1. 1

    I'm bumping this because it's still an issue.

    I'm bumping this because it's still an issue.

  2. 2

    Honestly, IDGAF about we're waiting for eleventeen planets to align so we can ha

    Honestly, IDGAF about we're waiting for eleventeen planets to align so we can have a celestially perfect tea ceremony to please our ancestors in the afterlife but we'll have to wait six more years for it to happen. This issue needs a fix; gate the destroy provisioner blocks off the resource they're attached to. If the resource was there, run the provisioners and let the admins sort it out.

Validation

Resolved in hashicorp/terraform GitHub issue #13549. Community reactions: 35 upvotes.

Verification Summary

Worked: 7
Partial: 2
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

terraformiacawsenhancementcore