Hi. I was stuck with this error CREATE_FAILED | AW...
# help
a
Hi. I was stuck with this error CREATE_FAILED | AWS:Lambda:LayerVersion | PrismaLayer958161C6 | Could not unzip uploaded file. Please check your file, then try to upload again. (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: 4fa5aa5e-24be-4cfa-83d5-ef466628c847; Proxy: null) and could not understand what was happening. But it turned out that the reason is that the S3 bucket where SST uploads lambdas and layers zip files is full. So I manually deleted all objects from the bucket and now the deployment works. Is there a way to remove files from SST service bucket (cdk-hnb659fds-assets-660857977215-us-east-1) automatically?
f
Hey @Artem Pabacham, I don’t think the S3 bucket has a max size or max file count limit.. could this be an intermittent error?
a
it could but i have a feeling that I had the same error some months ago. ok, will see
b
I've just faced same error, and did what Artem did, it resolved the issue there were about 30GB in this s3 bucket @Frank
f
Thanks for confirming this @Bshr Ramadan
I noticed some ppl are running into the same issue with CDK. Some were guessing it might be due to corrupted files in the bucket. Either way, removing all the files in the bucket seems to get around the issue.
If this error pops up more often, we’ll put in a fix. Opening an issue to track this https://github.com/serverless-stack/serverless-stack/issues/1436