3

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

5
  • did you check if you have write permission to create a lambda function? also did you define a default profile to your ask cli and give that profile the required permission to create a lambda function? Commented Apr 23, 2018 at 9:47
  • thanks @bgsuello for the reply, I didn't explicitly do that. However If I use the same commands with the project without any extra npm packages, it works as expected. So , I believe permissions are all good Commented Apr 23, 2018 at 9:50
  • how about compressing then uploading your lambda function manually? Commented Apr 23, 2018 at 13:44
  • Consider posting this on the Alexa developer forums. Seems like it might be a problem in the CLI. That being said, please also consider: a) storing the code for the lambda function in S3 and configuring Lambda to pull the code from there. b) keeping your Lambda small to ensure the skill is responsive even with cold starts. Such a large package will take a long time to load whenever the container needs to be initiliazied from a cold start! Commented Apr 26, 2018 at 15:39
  • It was a proxy issue for me. Doing the upload off of my company's network did the trick. Commented Mar 2, 2023 at 18:14

1 Answer 1

2

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!

Sign up to request clarification or add additional context in comments.

2 Comments

Where is the lambda/custom directory? I think I am hitting the same issue because my credentials and my region are set and I have aborted a few uploads. However, I'm not seeing any large zip files anywhere.
In the source directory of your project. It is the directory where your index.js file of lanbda is.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.