aws / chalice

Python Serverless Microframework for AWS
Apache License 2.0
10.67k stars 1.01k forks source link

Ability to force reuse of an existing build package? #2045

Open nickandre opened 1 year ago

nickandre commented 1 year ago

Hey! I'd like to use Chalice for multi-environment deployments. I see that Chalice will automatically reuse a zip deployment package if it exists; for a deployment to prod, I would like the deployment to fail if the code was modified (i.e. fail if it doesn't find a ZIP file with the deployment that previously went to dev).

Is there an easy way to either:

  1. Specify a deployment package to use
  2. fail deployment if it doesn't find a cached zip package?

I can also take a look at adding support for this.