Skip to content

Commit 4bf8add

Browse files
authored
chore: update iam permissions for static tv (#1554)
1 parent 43dcb16 commit 4bf8add

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

codebuild/nodejs20.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@ env:
55
NODE_OPTIONS: "--max-old-space-size=4096"
66

77
phases:
8-
install:
8+
install:
99
commands:
10+
- TMP_ROLE=$(aws sts assume-role --role-arn "arn:aws:iam::370957321024:role/GitHub-CI-MPL-Dafny-Role-us-west-2" --role-session-name "CB-TestVectorResources")
11+
- export TMP_ROLE
12+
- export AWS_ACCESS_KEY_ID=$(echo "${TMP_ROLE}" | jq -r '.Credentials.AccessKeyId')
13+
- export AWS_SECRET_ACCESS_KEY=$(echo "${TMP_ROLE}" | jq -r '.Credentials.SecretAccessKey')
14+
- export AWS_SESSION_TOKEN=$(echo "${TMP_ROLE}" | jq -r '.Credentials.SessionToken')
15+
- aws sts get-caller-identity
16+
1017
- n 20
1118
- node --version ; npm --version
1219
- npm ci --unsafe-perm

0 commit comments

Comments
 (0)