From 86aa5d2243bb69dccf6699e3bf3767f1eda9b67a Mon Sep 17 00:00:00 2001 From: "@permadeath.com" Date: Tue, 11 Aug 2026 13:01:14 -0400 Subject: [PATCH] fix(scripts): use the documented aws profile Five scripts hardcoded AWS_PROFILE=jmm-lance-blue-apply, a name that matches no doc and nothing bootstrap generates. Every doc, and the bootstrap env's aws_config output, use the profile name lance-blue. Following the setup docs left these scripts pointing at a profile that does not exist. Now they default to lance-blue but still honor an AWS_PROFILE already set in the environment. --- scripts/logs.sh | 2 +- scripts/matches/killall.sh | 2 +- scripts/matches/list.sh | 2 +- scripts/matches/logs.sh | 2 +- scripts/shell.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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 \ -- 2.51.2