From 6d2179142e255739fe8b6dd4507818b39e634c22 Mon Sep 17 00:00:00 2001 From: GannonGuess <131088734+GannonGuess@users.noreply.github.com> Date: Tue, 25 Jun 2024 15:41:04 -0500 Subject: [PATCH] Error on AWS_DEFAULT_PROFILE not set (#15) * if AWS_DEFAULT_PROFILE is not set, an error will be thrown, preventing the docker container from running erroneously --- docker/run-local.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker/run-local.sh b/docker/run-local.sh index 3713752..849438e 100755 --- a/docker/run-local.sh +++ b/docker/run-local.sh @@ -28,6 +28,12 @@ then exit 1; fi +if [ -z "$AWS_DEFAULT_PROFILE" ] +then + echo "AWS_DEFAULT_PROFILE must be set!" + exit 1; +fi + CONTAINER="$PREFIX-$STAGE-pdal_runner" REGION=$AWS_DEFAULT_REGION