diff --git a/scripts/logs.sh b/scripts/logs.sh index b27a3d8..928e795 100755 --- a/scripts/logs.sh +++ b/scripts/logs.sh @@ -2,7 +2,7 @@ # Follow a container's logs on the api host: ./scripts/logs.sh [api|caddy] set -euo pipefail -export AWS_PROFILE=jmm-lance-blue-apply +export AWS_PROFILE="${AWS_PROFILE:-lance-blue}" ENV_DIR="$(dirname "$0")/../envs/lance.blue" container="${1:-api}" diff --git a/scripts/matches/killall.sh b/scripts/matches/killall.sh index 5750bd4..edf9d61 100755 --- a/scripts/matches/killall.sh +++ b/scripts/matches/killall.sh @@ -7,7 +7,7 @@ # deliberately, and this stays an operator's big red button. set -euo pipefail -export AWS_PROFILE=jmm-lance-blue-apply +export AWS_PROFILE="${AWS_PROFILE:-lance-blue}" ENV_DIR="$(dirname "$0")/../../envs/lance.blue" CLUSTER="$(tofu -chdir="$ENV_DIR" output -raw match_cluster_name)" diff --git a/scripts/matches/list.sh b/scripts/matches/list.sh index a0af4ec..22d63a5 100755 --- a/scripts/matches/list.sh +++ b/scripts/matches/list.sh @@ -6,7 +6,7 @@ # data it says so and the task list still prints. set -uo pipefail -export AWS_PROFILE=jmm-lance-blue-apply +export AWS_PROFILE="${AWS_PROFILE:-lance-blue}" ENV_DIR="$(dirname "$0")/../../envs/lance.blue" HOURS="${1:-6}" diff --git a/scripts/matches/logs.sh b/scripts/matches/logs.sh index 3d292e0..a757379 100755 --- a/scripts/matches/logs.sh +++ b/scripts/matches/logs.sh @@ -7,7 +7,7 @@ # id (short prefix is enough, see scripts/matches/list.sh) follows just that one. set -uo pipefail -export AWS_PROFILE=jmm-lance-blue-apply +export AWS_PROFILE="${AWS_PROFILE:-lance-blue}" ENV_DIR="$(dirname "$0")/../../envs/lance.blue" TASK="${1:-}" SINCE="${2:-30m}" diff --git a/scripts/shell.sh b/scripts/shell.sh index d4b9c4e..8f62872 100755 --- a/scripts/shell.sh +++ b/scripts/shell.sh @@ -3,7 +3,7 @@ # session-manager-plugin - see DEVELOPING.md. sudo works inside. set -euo pipefail -export AWS_PROFILE=jmm-lance-blue-apply +export AWS_PROFILE="${AWS_PROFILE:-lance-blue}" ENV_DIR="$(dirname "$0")/../envs/lance.blue" exec aws ssm start-session \