Skip to content

Commit ab7ee5c

Browse files
fix: Update CloudFront distribution ID variable in pipeline.
1 parent a704ea6 commit ab7ee5c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bitbucket-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ definitions:
302302
- export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_CF_KEY
303303
- export AWS_DEFAULT_REGION=$AWS_REGION
304304
- |
305-
if ! aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/*"; then
306-
echo "CloudFront invalidation failed for distribution ID: $CLOUDFRONT_DISTRIBUTION_ID"
305+
if ! aws cloudfront create-invalidation --distribution-id $cloudfront_distribution --paths "/*"; then
306+
echo "CloudFront invalidation failed for distribution ID: $cloudfront_distribution"
307307
exit 1
308308
fi
309309

0 commit comments

Comments
 (0)