-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Deposed resources do not call when = destroy
provisioners
#31266
Comments
arbourd
changed the title
Deposed resources do not called
Deposed resources do not call Jun 17, 2022
when = destroy
provisionerswhen = destroy
provisioners
Oh sorry, I searched but didn't find anything. Appreciate it @jbardin 🙏 |
This was referenced Jun 17, 2022
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When using
create_before_destroy
lifecycle hook, it appears thatremote-exec
provisioners are not called. Here's the pattern I'm trying to adapt (due to Equinix Metal not having a shutdown script function):metal_device
is brought upnull_resource
is brought up to house the triggersnull_resource
is destroyed, executing theremote-exec
which ensures that the node leaves the consul poolmetal_device
is destroyedTerraform Version
Terraform Configuration Files
Debug Output
Nothing of immediately value popped up here.
Expected Behavior
The
remote-exec
script should run.Actual Behavior
The
remote-exec
does not run.There is no indication that the SSH script ran. Removing the lifecycle shows that it does:
Steps to Reproduce
remote-exec
provision is also using the lifecycle hook.Additional Context
Running in Terraform Cloud
The text was updated successfully, but these errors were encountered: