removed state pull

This commit is contained in:
miampf 2024-03-01 14:37:28 +01:00
parent db59cf38e0
commit 8a3e830596
No known key found for this signature in database
GPG Key ID: EF039364B5B6886C

View File

@ -15,7 +15,6 @@ function download_tfstate_artifact {
function delete_resources {
cd "$1/constellation-terraform" || exit 1
terraform init > /dev/null || exit 1 # first, install plugins
terraform state pull > terraform.tfstate || exit 1 # update the local state with the remote state to only have resources in the state that have to be cleaned up.
terraform destroy -auto-approve || exit 1
cd ../../ || exit 1
}
@ -24,7 +23,6 @@ function delete_resources {
function delete_iam_config {
cd "$1/constellation-iam-terraform" || exit 1
terraform init > /dev/null || exit 1 # first, install plugins
terraform state pull > terraform.tfstate || exit 1 # update the local state with the remote state to only have resources in the state that have to be cleaned up.
terraform destroy -auto-approve || exit 1
cd ../../ || exit 1
}