You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
I have two null_resources create1 and create2 and two destroy time null_resources delete1 and delete2. I want delete1 and delete2 to run when create1 and create2 are deleted when I run terraform destroy. am I wrong in the code or is it by design or bug?
when I run terraform apply I see that create1 ran before create2 which is perfect.
Hi @VickyWinner 👋 Thank you for raising this issue and apologies for the delayed response. We use this issue tracker for bug reports and feature requests, while the null provider itself does not tend to have too much traffic for its maintainers to regularly re-check through the issues.
If you haven't had this question answered already or it hasn't already been fixed with Terraform updates since this issue was created, it would be best to raise a topic in HashiCorp Discuss, where there is a large community of practitioners better equipped to answer them. The lifecycle block functionality is wholly implemented in Terraform core (outside of individual providers). If you believe there is a bug in that handling, it would be best to create an issue in the Terraform core issue tracker.
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.
Hi there,
I have two null_resources
create1
andcreate2
and two destroy time null_resourcesdelete1
anddelete2
. I wantdelete1
anddelete2
to run whencreate1
andcreate2
are deleted when I runterraform destroy
. am I wrong in the code or is it by design or bug?when I run
terraform apply
I see thatcreate1
ran beforecreate2
which is perfect.I don't see any timestamp to say what ran first but based on the output and its order, I am thinking this is what the order being followed.
Terraform Version
#> terraform -v
Terraform v0.13.1
Affected Resource(s)
null_resource
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
Debug Output
Please provider a link to a GitHub Gist containing the complete debug output: https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the debug output in the issue; just paste a link to the Gist.
Panic Output
If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the
crash.log
.Expected Behavior
Terraform should run
delete1
after destroyingcreate1
anddelete2
after destroyingcreate2
respectively.Actual Behavior
see output above
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: