Skip to content

Commit 04847ce

Browse files
update aws-vault usage to sso
1 parent f439859 commit 04847ce

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

local_tests/build-docker-runtime.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fi
6666
cd "$CURRENT_PATH/local_tests"
6767
if [ -z "$LAYER_PATH" ] && [ -n "$LAYER_NAME" ]; then
6868
# Get the latest available version
69-
LATEST_AVAILABLE_VERSION=$(aws-vault exec serverless-sandbox-account-admin \
69+
LATEST_AVAILABLE_VERSION=$(aws-vault exec sso-serverless-sandbox-account-admin \
7070
-- aws lambda list-layer-versions --layer-name $LAYER_NAME --region sa-east-1 --max-items 1 \
7171
| jq -r ".LayerVersions | .[0] | .Version")
7272

@@ -77,7 +77,7 @@ if [ -z "$LAYER_PATH" ] && [ -n "$LAYER_NAME" ]; then
7777
echo "The layer has already been downloaded, skipping"
7878
else
7979
echo "Downloading the latest $RUNTIME layer (version $LATEST_AVAILABLE_VERSION)"
80-
URL=$(aws-vault exec serverless-sandbox-account-admin \
80+
URL=$(aws-vault exec sso-serverless-sandbox-account-admin \
8181
-- aws lambda get-layer-version --layer-name $LAYER_NAME --version-number $LATEST_AVAILABLE_VERSION \
8282
--query Content.Location --region sa-east-1 --output text)
8383
curl -k $URL -o "$LAYER"

scripts/publish_prod.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fi
6464
docker login
6565

6666
echo "Checking that you have access to the commercial AWS account"
67-
aws-vault exec prod-engineering -- aws sts get-caller-identity
67+
aws-vault exec sso-prod-engineering -- aws sts get-caller-identity
6868

6969
echo "Checking that you have access to the GovCloud AWS account"
7070
ddsaml2aws login -a govcloud-us1-fed-human-engineering
@@ -73,10 +73,10 @@ AWS_PROFILE=govcloud-us1-fed-human-engineering aws sts get-caller-identity
7373
VERSION=$VERSION AGENT_VERSION=$AGENT_VERSION ./scripts/build_binary_and_layer_dockerized.sh
7474

7575
echo "Signing the layer"
76-
aws-vault exec prod-engineering -- ./scripts/sign_layers.sh prod
76+
aws-vault exec sso-prod-engineering -- ./scripts/sign_layers.sh prod
7777

7878
echo "Publishing layers to commercial AWS regions"
79-
aws-vault exec prod-engineering --no-session -- ./scripts/publish_layers.sh
79+
aws-vault exec sso-prod-engineering --no-session -- ./scripts/publish_layers.sh
8080

8181
echo "Publishing layers to GovCloud AWS regions"
8282
ddsaml2aws login -a govcloud-us1-fed-human-engineering

0 commit comments

Comments
 (0)