question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(cdk-pipelines): Long CloudFormation prepare step causes S3 Request Expired error

See original GitHub issue

Recently, 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

  1. Make a change that results in a large changeset (~50 CW alarms, with complex metrics containing nested maths expressions in my case).
  2. 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:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rix0rrrcommented, Dec 14, 2020

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

1reaction
rix0rrrcommented, Dec 8, 2020

I’ve linked CodePipeline team to this ticket. That’s all I can do, unfortunately.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found