Skip to content

feat: add fine-grained pre/post commands to terragrunt workflows#56

Merged
chris11-taylor-nttd merged 1 commit intomainfrom
feat/better-pre-post-control
Feb 6, 2026
Merged

feat: add fine-grained pre/post commands to terragrunt workflows#56
chris11-taylor-nttd merged 1 commit intomainfrom
feat/better-pre-post-control

Conversation

@chris11-taylor-nttd
Copy link
Contributor

This adds support for arbitrary commands to be run before and after all Terragrunt plan/deploy/destroy steps. Additionally, for workflows that contain multiple steps (e.g. plan and then deploy), adds a "shared" commands structure that will apply to both for convenience.

This opens the door for repo-specific commands to be run around the core Terragrunt workflows. One immediate need is around an internal tool utilizing our Azure web_app module, which has a lifecycle rule that prevents changes to app_settings. This is done because there are other services and features within Azure that will dynamically update these configuration items, which Terraform detects as drift and then attempts to correct on next run. For setups utilizing this module, an external script to additively apply expected configurations, rather than a full sync, can be used to ensure that configurations are published through the pipeline.

Also contains a few minor formatting/indentation changes. Evidently I didn't have format-on-save turned on the last time I messed with these files.

@chris11-taylor-nttd chris11-taylor-nttd merged commit bf93c19 into main Feb 6, 2026
3 checks passed
@chris11-taylor-nttd chris11-taylor-nttd deleted the feat/better-pre-post-control branch February 6, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants