Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Minor

Rich Turner79c248bc78c5
diff --git a/.ci_cd/deploy.sh b/.ci_cd/deploy.sh
index dae89b831..e5f0893f1 100644
--- a/.ci_cd/deploy.sh
+++ b/.ci_cd/deploy.sh
@@ -103,6 +103,8 @@ fi
if [ "$SKIP_SSH_WHITELIST" != 'true' ]; then
if [ -n "$CIDR" ]; then
if [ -z "$AWS_ACCOUNT_NAME" ] && [ -z "$AWS_ACCOUNT_ID" ]; then
+ source temp/aws/login.sh
+
echo "Account ID or name is not set so searching for it"
source temp/aws/get_account_id_from_host.sh
@@ -205,12 +207,6 @@ set -a
. ./temp/env
set +a
-# Login to AWS if credentials provided
-AWS_KEY=$AWS_KEY
-AWS_SECRET=$AWS_SECRET
-AWS_REGION=$AWS_REGION
-source temp/aws/login.sh
-
if [ -f "temp/manager.tar.gz" ]; then
echo "Loading manager docker image"
docker load < temp/manager.tar.gz