GHA: Upload ls extensions snapshot to Akamai

This commit is contained in:
aboyko
2023-11-08 17:29:30 -05:00
parent 36067d2f6f
commit a037705f0b
3 changed files with 18 additions and 7 deletions

View File

@@ -2,7 +2,11 @@
# The script asks for temp credentials to be able to upload to Akamai S3 origin bucket
# The AWS CLI environment variables are then updated with temp credentials values
session_name=$1
duration_seconds=$2
duration_seconds=900
if [ ! -z "$2" ]; then
duration_seconds=$2
fi
export $(printf "AWS_ACCESS_KEY_ID=%s AWS_SECRET_ACCESS_KEY=%s AWS_SESSION_TOKEN=%s" \
$(aws sts assume-role \
--role-arn arn:aws:iam::${{ secrets.TOOLS_CLOUDGATE_ACCOUNT_ID }}:role/${{ secrets.TOOLS_CLOUDGATE_USER }} \