agutoli / serverless-layers

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

Only upload new layer on deployment #115

Open luanmuniz opened 2 years ago

luanmuniz commented 2 years ago

I'm implementing a CI on top of my app and one of the steps I want to run is sls package just to make sure all the configurations are there and the CD part will be able to run everything correctly.

My problem is that as soon as I run sls package the plugin will try to upload a new version of the layer and I don't want that extra step taking build time.

Is it possible to have a flag or bind the upload to the deploy command to force-prevent the upload of the layer and the update of the state in AWS?

That way I can have the plugin installing and doing everything it would normally do, except uploading to AWS and updating the remote state. Keep everything locally just to verify everything will be ok once we try to deploy.

newza-fullmetal commented 1 year ago

hello

facing the same problem. I am doing test to check for upgrading my databases so I need package to get access. But it check the layers and update it if new lib or updates.

but when come the deployment, it is not deployed because the file in the s3 are up to date