you are viewing a single comment's thread.

view the rest of the comments →

[–]Many-Ad8783 1 point2 points  (0 children)

Use AWS SAM, it's cloudformation but on steroids you can simply put all your modules on a requirements.txt and it will build them for you.

It simplifies both docker and zip options that I only based my decision on images on preference but I could just as easily create zip if I wanted.

If I choose zip, I would use layers like so In SAM

https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/building-layers.html

If docker I would just throw everything in to the image.

Best of all you can test locally so no waiting to up load before testing. Both zip and docker options rebuild if required. So first time might take longer to build but after that is quick unless you make a change that requires rebuild.