(cdk-pipelines): Long CloudFormation prepare step causes S3 Request Expired error
See original GitHub issueRecently, when trying to deploy a change that had a large-ish change-set, the Prepare
step for a stack in one of my stages took a particularly long time (~12 minutes). After this time, the Prepare
step failed with an S3 Request Expired
error (see below).
I was able to work around this issue by splitting my change into multiple smaller commits. I’m not really sure what’s happening during this prepare step (I assume it’s creating the CFN change-set and uploading it to S3).
Reproduction Steps
- Make a change that results in a large changeset (~50 CW alarms, with complex metrics containing nested maths expressions in my case).
- Push the change.
What did you expect to happen?
A successful deployment of the stack.
What actually happened?
The stack spent ~12 minutes in the CloudFormation Prepare
step in the first application stage, after which it failed with the following error:
Action execution failed
S3 error: Request has expired For more information check http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html (Service: AmazonCloudFormation; Status Code: 400; Error Code: ValidationError; Request ID: f974d950-7771-496a-a9d6-d544848fd316)
Environment
- CDK CLI Version : 1.76.0
- Framework Version: 1.76.0
- Node.js Version: 14.13.0
- OS : Ubuntu 20.04
- Language (Version): TypeScript 3.9.7
This is 🐛 Bug Report
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Troubleshooting common AWS CDK issues
Exceeding the AWS CloudFormation resource limit is an error during AWS CloudFormation synthesis. The AWS CDK issues a warning if your stack exceeds...
Read more >When I try to access an S3 object, I get the error "Request has ...
Resolution. Amazon S3 returns this error message when you try to access a presigned URL past the specified expiration date of the URL....
Read more >aws_cloudfront_distribution | Resources | hashicorp/aws
The following example below creates a CloudFront distribution with an S3 origin. ... request in the absence of an Cache-Control max-age or Expires...
Read more >13 AWS Lambda design considerations you need to know about
API Gateway Request is a Push model and by default has a Request Response invocation The HTTP request is sent through to the...
Read more >The security token included in the request is expired
In my case the issue was that, I had credentials in my .aws/configure and was trying to configure from that but what I...
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
Going to close this ticket as it’s not actionable for CDK. The CloudFormation investigators can still use this ticket to respond, though.
If weeks go by without response, you can try re-engaging through Customer Support or this GitHub project: https://github.com/aws-cloudformation/aws-cloudformation-coverage-roadmap
Internal reference: D19336056
I’ve linked CodePipeline team to this ticket. That’s all I can do, unfortunately.