Getting this issue on my brand new Python function...
# sst
a
Getting this issue on my brand new Python function on SST deploy:
Copy code
03:08:26 | CREATE_FAILED        | AWS::Lambda::Function      | MyPythonTestLambda94F3A946 - Resource handler returned message: "Unzipped size must be smaller than 261144790 bytes (Service: Lambda, Status Code: 400, Request ID: 89566dbb-2ba6-4517-b4ee-79fc61a3be73, Extended Request ID: null)" (RequestToken: 593fa1dc-a52d-6714-60a1-76a5e14c23ff, HandlerErrorCode: InvalidRequest)
m
Maybe you're using a large package inside your code. Extract it into a layer then redeploy.
f
@manitej is 50% right in this case lol. @Adrián Mouly is probably using a large package. But extracting it to a layer still counts towards the same unzipped size.
@Adrián Mouly if you run an
sst build
, you can go into the
.build
folder and see which package is taking up most of the space.
a
Ok going to check it.
m
50% is good enough I think 😜 @Frank