Skip to content

Commit

Permalink
reverting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosrodlop committed Nov 14, 2024
1 parent 6c89ef4 commit f615bdc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blueprints/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ tf-destroy () {
export TF_LOG_PATH="$SCRIPTDIR/$root/terraform.log"
rm "$TF_LOG_PATH" || INFO "No previous log found."
tf-destroy-wl "$root"
eks_cluster_name=$(tf-output "$root" eks_cluster_name)
aws_region=$(tf-output "$root" aws_region)
retry 3 "terraform -chdir=$SCRIPTDIR/$root destroy -target=module.eks -auto-approve"
INFO "Destroy target module.eks completed."
#Prevent Issue #165
if [ "$root" == "${BLUEPRINTS[1]}" ] && [ -n "$eks_cluster_name" ] && [ -n "$aws_region" ]; then
if [ "$root" == "${BLUEPRINTS[1]}" ]; then
eks_cluster_name=$(tf-output "$root" eks_cluster_name)
aws_region=$(tf-output "$root" aws_region)
bash "$SCRIPTDIR/$root/k8s/kube-prom-destroy.sh" "$eks_cluster_name" "$aws_region"
INFO "kube-prom-destroy.sh completed."
fi
Expand Down

0 comments on commit f615bdc

Please sign in to comment.