Skip to content

Commit

Permalink
update cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
ksaifullah committed Apr 24, 2024
1 parent ca07479 commit 9704e20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions list-bucket.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -euo pipefail

AccessToken=$(gcloud auth print-identity-token)
Response=$(aws sts assume-role-with-web-identity --role-arn "${AWS_ROLE_ARN}" --role-session "cloud-guild" --web-identity-token "$AccessToken")
export AWS_ACCESS_KEY_ID=$(echo $Response | jq -r .Credentials.AccessKeyId)
Expand Down

0 comments on commit 9704e20

Please sign in to comment.