I’m deploying a simple two-function service using the Go runtime using serverless. The setup works, but on each deploy the command hangs on the
Packaging service... step for a very long time (sometimes 2 minutes, sometimes 10) before proceeding with my computer maxing out on CPU, sometimes even freezing the UI.
The strange thing is that there is not much to package at all (it’s two binaries and a text file) and when I look at the zip files on S3 there are no extraneous files in there.
My setup looks like this:
functions: app: package: include: - app/bin/app - app/bin/key.txt handler: app/bin/app authorizer: package: include: - app/bin/authorizer handler: app/bin/authorizer package: individually: true exclude: - '*/**'
Is there something wrong with this setup? Running the command with
SLS_DEBUG=1 did not yield any relevant insights. I am on
Something that might be very relevant here: I am working in a mono-repo-ish kind of setup and use a top-level
sls command to deploy multiple services like
sls deploy --config app/serverless.yml