add retry for CreateInvalidation to prevent ServiceUnavailable error

This commit is contained in:
David Karlsson 2022-09-30 15:32:48 +02:00 committed by David Karlsson
parent ddc1e906db
commit 51aa658e0a
1 changed files with 1 additions and 0 deletions

View File

@ -120,6 +120,7 @@ jobs:
aws cloudfront create-invalidation --distribution-id ${{ env.DOCS_CLOUDFRONT_ID }} --paths "/*"
env:
AWS_REGION: us-east-1 # cloudfront is only available in us-east-1 region
AWS_MAX_ATTEMPTS: 5
-
name: Send Slack notification
if: ${{ env.SEND_SLACK_MSG == 'true' }}