Last active
June 19, 2024 08:47
-
-
Save thomashartm/38c25c12abda4d5425a4235530e99e5c to your computer and use it in GitHub Desktop.
Removes a terragrunt state for a group of resources that contain the provided argument
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
#!/bin/bash | |
# usage: | |
# ./remove-terragrunt-state module.s3_bucket ../../../ | |
TOKEN=$1 | |
SOURCE=$2 | |
terragrunt state rm $(terragrunt state list --terragrunt-source ../../../ | grep $TOKEN) --terragrunt-source $SOURCE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment