0

I got this error from AWS cloudformation lambda

Resource handler returned message: "Unzipped size must be smaller than 262144000 bytes (Service: Lambda)

for deploying React application

Should adding something like this

archive_system_regex_exclude:
  - (.*)node_modules(.*)

will solve the issue and what is the effect of this as our application is UI

What other solution could solve this ?

Thanks

Trying adding

archive_system_regex_exclude:
  - (.*)node_modules(.*)

in lambda-transform.yml

But I don't know how this will affect our react application

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
Safaa
  • 11
  • 2
  • try using layers https://docs.aws.amazon.com/lambda/latest/dg/invocation-layers.html maybe this can help. – Woohaik Oct 27 '22 at 21:11
  • [See this answer](https://stackoverflow.com/questions/45342990/aws-lambda-error-unzipped-size-must-be-smaller-than-262144000-bytes/71920166#71920166) – Wesley Cheek Oct 28 '22 at 00:32

0 Answers0