Skip to content

Commit 1bb4cda

Browse files
authored
Update aws-vault usage to sso (#365)
1 parent 8f2686c commit 1bb4cda

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

scripts/publish_prod.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fi
3434
# Ensure AWS access before proceeding
3535
ddsaml2aws login -a govcloud-us1-fed-human-engineering
3636
AWS_PROFILE=govcloud-us1-fed-human-engineering aws sts get-caller-identity
37-
aws-vault exec prod-engineering -- aws sts get-caller-identity
37+
aws-vault exec sso-prod-engineering -- aws sts get-caller-identity
3838

3939
# Ensure pypi registry access
4040
read -p "Do you have access to PyPI (y/n)?" CONT
@@ -64,11 +64,11 @@ echo "Building layers..."
6464

6565
echo
6666
echo "Signing layers for commercial AWS regions"
67-
aws-vault exec prod-engineering -- ./scripts/sign_layers.sh prod
67+
aws-vault exec sso-prod-engineering -- ./scripts/sign_layers.sh prod
6868

6969
echo
7070
echo "Publishing layers to commercial AWS regions"
71-
VERSION=$LAYER_VERSION aws-vault exec prod-engineering -- ./scripts/publish_layers.sh
71+
VERSION=$LAYER_VERSION aws-vault exec sso-prod-engineering -- ./scripts/publish_layers.sh
7272

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

scripts/publish_sandbox.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
set -e
55

66
./scripts/build_layers.sh
7-
aws-vault exec serverless-sandbox-account-admin -- ./scripts/sign_layers.sh sandbox
8-
aws-vault exec serverless-sandbox-account-admin -- ./scripts/publish_layers.sh
7+
aws-vault exec sso-serverless-sandbox-account-admin -- ./scripts/sign_layers.sh sandbox
8+
aws-vault exec sso-serverless-sandbox-account-admin -- ./scripts/publish_layers.sh
99

1010
# Automatically create PR against github.com/DataDog/documentation
1111
# If you'd like to test, please uncomment the below line

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)