简体   繁体   中英

AWS chalice how to reduce lamda deployment size

I have managed to deploy one lambda function fine with chalice and the lambda function code was only like 15kb, I'm trying to do it again and this time it is over 8mb? I assume it is uploading my virtualenvironment too? How do I stop this happening and keep my code light enough to edit inline on the aws console?

Bit of an awkward work around but I removed all contents from "requirements.txt" I then uploaded all my dependencies manually through lambda layers

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM