aws / chalice

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

Deploy Chalice app via code vs. command line #1582

Open eric-valente opened 3 years ago

eric-valente commented 3 years ago

hi great package -

Is it possible to deploy Chalice app via a method of the Chalice() class?

Something like this: app = Chalice() app.deploy()

Instead of "chalice deploy" in terminal?

jamesls commented 3 years ago

No, there's no public API for doing this as of now, primarily due to no one asking for it. Can you tell me more about how you would use this API if it existed?

no-response[bot] commented 3 years ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

eric-valente commented 3 years ago

Hi @jamesls sorry I missed this.

Similar to Prefect - they have a CLI like "prefect register" but I can also call from within my Jupyter Notebook via flow.register(). The Python API is very handy. It's just easier than having to go to a terminal to deploy and some of my CI/CD scripts would be simpler if I just was able to incorporate the re-deployment via Python instead of a terminal.