After CDK upgrade, no longer able to deploy a cloudfront static site

0

Since Friday, I haven't been able to deploy static web assets as a cloudfront static site.

I am running my deployment through CDK, and I get an error at deployment of the CloudfrontStaticSite/BucketDeployment/AwsCliLayer layer

No problems before then, and I am seeing this error with both cdk version 2.177.0 and 2.1003.0/2.182.0

0:01:25 AM | CREATE_FAILED        | AWS::Lambda::LayerVersion            | CloudfrontStaticSi...wsCliLayerHASH
Resource handler returned message: "Could not unzip uploaded file. Please check your file, then try to upload again. (Service: Lambd
a, Status Code: 400, ... HandlerErrorCode: InvalidRequest)
1 Answer
-1

The issue you're experiencing with deploying a CloudFront static site using CDK appears to be related to a recent problem affecting many CDK users. This error is not specific to your code or deployment process, but rather a widespread issue that started occurring suddenly for numerous users.

The error message suggests there's a problem with unzipping the uploaded file for the Lambda layer. This could be due to a change or update in the underlying dependencies or runtime environment used by CDK.

While there isn't a definitive solution yet, here are some steps you can try:

  1. Check for any available updates to the CDK toolkit or related dependencies.

  2. Try using an earlier version of CDK if possible, as the issue seems to have started recently.

  3. Monitor AWS forums or official channels for any announcements about this issue.

  4. If you're using an antivirus software, particularly ESET Antivirus, try temporarily disabling SSL/TLS protection. Some users reported that ESET caused issues with local node.js installations, which could be related to your problem.

  5. If the problem persists, you may need to wait for AWS to address this issue, as it's affecting multiple users simultaneously. In the meantime, you could consider reaching out to AWS support for further assistance.

Remember that since this problem appeared suddenly and is affecting multiple users, it's likely a temporary issue that will be resolved by AWS soon.
Sources
CDK Deploy error started about an hour ago | AWS re:Post

profile picture
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions