-
-
Notifications
You must be signed in to change notification settings - Fork 965
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
Bug/support running apply destroy in reverse order #2445
Bug/support running apply destroy in reverse order #2445
Conversation
5127f5d
to
0f67971
Compare
|
0f67971
to
f77d299
Compare
@denis256, do you mind rerunning the tests? I don't believe I have access to. |
I was wondering in which case is required to invert module group ordering? |
I think we want to invert on any "destroy", right? |
We are running into this same issue. Our workflows perform a "run-all plan" with the destroy option and then use the "destroy" plan generated to do a "run-all apply", which should delete module state in the reverse order in which they were created. I posted issue #2453 on this yesterday. I will close that issue as I can see you are already working on this problem. |
@denis256, light bump on this. Thanks! |
Any updates? |
We ran into this today too whilst doing a |
Hey @jlepere-everlaw Sorry we didn't get to this PR before it went stale. It does seem like a very sensible adjustment to how Terragrunt works, and would make it more consistent. If you would still like to see this make its way to into Terragrunt, please create a new pull request. To maximize the likelihood that your next pull request is merged, please make sure that:
|
Could you please share the link to the new issue here? |
So? Any news about this bug? Using Terragrunt version |
I didn't create an issue to report this, but if someone from the community would like to do so and submit a pull request to address it, I would review it. I'm fairly confident that @jlepere-everlaw 's implementation here will meet the need, so if someone can re-implement it following the guidance outlined here: That will help it get merged. |
Issue reopened as #3371 |
Description
Invert module group ordering for
apply -destroy
commands, mirroring the functionality fordestroy
commands.Testing
This has been tested by:
$ go test -v ./...
$ go run main.go run-all apply -destroy --terragrunt-working-dir ...
TODOs
I'm not sure if documentation should be updated. Maybe somewhere here?
Release Notes (draft)
Added support for inverting module group ordering for
apply -destroy
commands.