Skip to content

armgit / core

Public Imported from GitHub
0

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

Fix for GH #2006, debug AWS logout/login (#2115)

Eric Bariauxad548e7c3533
diff --git a/.ci_cd/aws/login.sh b/.ci_cd/aws/login.sh
index 60e44eb35..244b960fa 100644
--- a/.ci_cd/aws/login.sh
+++ b/.ci_cd/aws/login.sh
@@ -15,10 +15,12 @@ if [ -z "$AWS_REGION" ]; then
fi
if [ -n "$AWS_ACCESS_KEY_ID" ]; then
+ echo "Setting AWS_ACCESS_KEY_ID"
aws configure --profile github set aws_access_key_id $AWS_ACCESS_KEY_ID
fi
if [ -n "$AWS_SECRET_ACCESS_KEY" ]; then
+ echo "Setting AWS_SECRET_ACCESS_KEY"
aws configure --profile github set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
fi
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml
index b6b0e88d8..6598a283a 100644
--- a/.github/workflows/ci_cd.yml
+++ b/.github/workflows/ci_cd.yml
@@ -844,6 +844,7 @@ jobs:
# Clean-up AWS credentials related variable that might have been set by Configure AWS Credentials for ECR upload
del os.environ["AWS_ACCESS_KEY_ID"]
del os.environ["AWS_SECRET_ACCESS_KEY"]
+ del os.environ["AWS_SESSION_TOKEN"]
# Determine deploy script to use
deployScript = ".ci_cd/deploy.sh"