Skip to content

Commit e33a40e

Browse files
committed
Fix
1 parent ca18783 commit e33a40e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bitbucket-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ definitions:
229229
name: Find and Invalidate CloudFront Cache
230230
image: amazon/aws-cli
231231
script:
232-
- aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID
233-
- aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
232+
- aws configure set aws_access_key_id $AWS_ACCESS_CF_KEY_ID
233+
- aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_CF_KEY
234234
- aws configure set default.region $AWS_REGION
235235
- export CLOUDFRONT_NAME=$(echo "$BITBUCKET_BRANCH" | awk -F'/' '{if(NF==1)val=$1;else if(NF==2)val=$2;else if(NF==3)val=$2;else val=$3;gsub(/_/, "-", val);print tolower(val)}')
236236
- export CLOUDFRONT_DISTRIBUTION_ID=$(aws cloudfront list-distributions --query "DistributionList.Items[?Comment=='staging--$CLOUDFRONT_NAME'].Id" --output text)

0 commit comments

Comments
 (0)