-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hooks: treat lookup dependencies specially to handle destroy
When running the destroy action, we reverse the order of execution compared to build, such that steps that required others are now required by them instead. Unfortunately that is not enough to express the execution requirements of hooks: they might be `required_by` a stack to run some cleanup before destroying that stack, but still need it to be deployed to lookup outputs from. Handle that by manually checking for the dependencies of lookups before executing hooks, skipping them if a required stack is not deployed (or has already been destroyed).
- Loading branch information
Showing
6 changed files
with
257 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.