install plugins before deleting resources

This commit is contained in:
miampf 2024-01-31 16:27:53 +01:00
parent 85c485f723
commit 7b95a54b92
No known key found for this signature in database
GPG Key ID: EF039364B5B6886C

View File

@ -14,6 +14,7 @@ function download_tfstate_artifact {
# delete_resources runs terraform destroy on the constellation-terraform subfolder of a given folder.
function delete_resources {
cd $1/constellation-terraform
terraform init # first, install plugins
terraform destroy -auto-approve
cd ../../
}
@ -21,6 +22,7 @@ function delete_resources {
# delete_iam_config runs terraform destroy on the constellation-iam-terraform subfolder of a given folder.
function delete_iam_config {
cd $1/constellation-iam-terraform
terraform init # first, install plugins
terraform destroy -auto-approve
cd ../../
}