aws-s3-deployment - intermittent cloudfront "Waiter InvalidationCompleted failed" error
See original GitHub issueI’ve come across a deployment where cloudfront was invalidated but the lambda timed out with cfn_error: Waiter InvalidationCompleted failed: Max attempts exceeded
. ~I suspect a race conditon, and that reversing the order of cloudfront.create_invalidation()
and cloudfront.get_waiter()
would fix this race condition.~
edit: proposed fix of reversing create_invalidation() and get_waiter() is invalid, see https://github.com/aws/aws-cdk/issues/15891#issuecomment-898413309
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:34 (13 by maintainers)
Top Results From Across the Web
Class: Aws::CloudFront::Waiters::InvalidationCompleted
Returns a response object which responds to the following methods:. Constructor Details. #initialize(options) ⇒ InvalidationCompleted. Returns a new ...
Read more >invalidation-completed — AWS CLI 2.9.6 Command Reference
Wait until an invalidation has completed. It will poll every 20 seconds until a successful state has been reached. This will exit with...
Read more >AWS Cloudfront error? invalidation max times while ...
The error still happens randomly, sometimes just retrying the deployment later works fine, and others fail on a different distribution.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Is it possible to re-open this issue? We’re experiencing this problem as well.
From the CloudFront team:
and