agutoli / serverless-layers

Serverless.js plugin implementing AWS Lambda Layers, reducing lambda size, warm-up, and deployment time.
MIT License
230 stars 54 forks source link

Run layers command out of serverless hooks #169

Open andreyvital opened 7 months ago

andreyvital commented 7 months ago

Hi, how's it going?

I have a GitHub actions build step that anticipates the packaging of my app, and it would be really nice to be able to run the layers packaging & deployment outside of running serverless commands.

Today I am running:

serverless package --stage qa

But I'm concerned if it's modifying existing deployment settings. I don't think it is, because if the dependencies have changed, it would publish a new zip version, hence, it would only be assigned to a new lambda deployment.

Let me know your thoughts.

The central idea is just to shave time on deployments by pre-packaging & deploying layers.

Thanks, A.