Skip to content

Commit 7af20ab

Browse files
authored
Update aws-vault usage to sso (#420)
1 parent 5e4a429 commit 7af20ab

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

scripts/publish_prod.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ ddsaml2aws login -a govcloud-us1-fed-human-engineering
3939
AWS_PROFILE=govcloud-us1-fed-human-engineering aws sts get-caller-identity
4040

4141
echo "Ensure you have access to the production AWS account"
42-
aws-vault exec prod-engineering -- aws sts get-caller-identity
42+
aws-vault exec sso-prod-engineering -- aws sts get-caller-identity
4343

4444
CURRENT_VERSION=$(npm view datadog-lambda-js version)
4545
LAYER_VERSION=$(echo $NEW_VERSION | cut -d '.' -f 2)
@@ -59,11 +59,11 @@ echo 'Building layers...'
5959

6060
echo
6161
echo "Signing layers for commercial AWS regions"
62-
aws-vault exec prod-engineering -- ./scripts/sign_layers.sh prod
62+
aws-vault exec sso-prod-engineering -- ./scripts/sign_layers.sh prod
6363

6464
echo
6565
echo "Publishing layers to commercial AWS regions"
66-
VERSION=$LAYER_VERSION aws-vault exec prod-engineering --no-session -- ./scripts/publish_layers.sh
66+
VERSION=$LAYER_VERSION aws-vault exec sso-prod-engineering --no-session -- ./scripts/publish_layers.sh
6767

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

scripts/publish_sandbox.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# Usage: VERSION=5 aws-vault exec serverless-sandbox-account-admin -- publish_sandbox.sh
3+
# Usage: VERSION=5 aws-vault exec sso-serverless-sandbox-account-admin -- publish_sandbox.sh
44
set -e
55

66
if [ -z "$VERSION" ]; then

scripts/run_integration_tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
# Usage - run commands from repo root:
44
# To check if new changes to the layer cause changes to any snapshots:
5-
# BUILD_LAYERS=true DD_API_KEY=XXXX aws-vault exec serverless-sandbox-account-admin -- ./scripts/run_integration_tests
5+
# BUILD_LAYERS=true DD_API_KEY=XXXX aws-vault exec sso-serverless-sandbox-account-admin -- ./scripts/run_integration_tests
66
# To regenerate snapshots:
7-
# UPDATE_SNAPSHOTS=true DD_API_KEY=XXXX aws-vault exec serverless-sandbox-account-admin -- ./scripts/run_integration_tests
7+
# UPDATE_SNAPSHOTS=true DD_API_KEY=XXXX aws-vault exec sso-serverless-sandbox-account-admin -- ./scripts/run_integration_tests
88

99
set -e
1010

0 commit comments

Comments
 (0)