File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 3131 if [[ $IS_VALID_ENV == true ]]; then
3232 exit 0
3333 fi
34+ echo "This workflow can only be run with 'account-*' environments as it deploys account-specific infrastructure"
3435 exit 1
3536
3637 terraform-plan :
Original file line number Diff line number Diff line change 11#! /bin/bash
2- # Get the name of all environments in a provided NRLF account
2+ # Get the names of all environments in a provided NRL AWS account
33set -o errexit -o nounset -o pipefail
44
5- if [ $# -ne 1 ]; then
5+ if [[ $# -ne 1 ] ]; then
66 echo " Usage: get-envs-for-account.sh <account>"
77 exit 1
88fi
@@ -11,11 +11,11 @@ account="$1"
1111
1212case " ${account} " in
1313 dev)
14- envs_array=(" dev" ) # "dev-sandbox")
14+ envs_array=(" dev" " dev-sandbox" )
1515 echo ${envs_array[@]}
1616 ;;
1717 test)
18- envs_array=(" qa" " perftest" " ref" " int" ) # "int-sandbox" "qa-sandbox") - I don't have perms for these!
18+ envs_array=(" qa" " perftest" " ref" " int" " int-sandbox" ) # "qa-sandbox" currently broken
1919 echo ${envs_array[@]}
2020 ;;
2121 prod)
You can’t perform that action at this time.
0 commit comments