Skip to content

Commit ffebbaf

Browse files
atraceanjalitrace2-nhs
authored andcommitted
NRL-1595 Bot suggestions + amendments from self-review
1 parent e52e4ae commit ffebbaf

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/deploy-account-wide-infra.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
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:

scripts/get-envs-for-account.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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
33
set -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
88
fi
@@ -11,11 +11,11 @@ account="$1"
1111

1212
case "${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)

0 commit comments

Comments
 (0)