-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix catalog validation scripts (#572)
- Loading branch information
Showing
3 changed files
with
22 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#! /bin/bash | ||
|
||
######################################################################################################################## | ||
## This script is used by the catalog pipeline to destroy the COS Instance, which was provisioned as a ## | ||
## prerequisite for the cross-region and regional bucket solutions that is published to the catalog ## | ||
######################################################################################################################## | ||
|
||
set -e | ||
|
||
TERRAFORM_SOURCE_DIR="solutions/instance" | ||
TF_VARS_FILE="terraform-cross-regional.tfvars" | ||
|
||
( | ||
cd ${TERRAFORM_SOURCE_DIR} | ||
echo "Destroying prerequisite COS Instance .." | ||
terraform destroy -input=false -auto-approve -var-file=${TF_VARS_FILE} || exit 1 | ||
|
||
echo "Post-validation complete successfully" | ||
) |
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