Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ask cli hangs when creating a lambda function

I'm trying to deploy my Alexa skill using ask-cli. I have added firebase to my lambda function as it requires to my skill.

Now it shows 138.3 MB on disk as the lambda folder size.

When I do ask deploy , I get this and nothing happens (it just hangs there)

enter image description here

I found this discussion and this page that outlines the file sizes for aws lambda, according to that, I think I'm within the size limits.

uncompressed .zip/.jar size is 250MB

is anyone else having this issue ? or know how to fix this ?

I'm using ask cli version 1.2.0

like image 911
sameera207 Avatar asked Dec 05 '25 04:12

sameera207


1 Answers

I had this issue and it usually happened because I previously aborted a Lambda upload. The problem for me was there being a leftover deployment .zip file in the lambda\custom directory. After aborting the apparent hung deployment, I would find a second .zip file that was huge depending upon how long I waited until I aborted the upload (one was 8GB in size!). Once I deleted all the .zip files, deployment had no issues. Just delete the .jar/.zip files and try again. Works like a charm!

like image 157
Ussama Zubair Avatar answered Dec 07 '25 19:12

Ussama Zubair



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!