aws / chalice

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

Deploy time reference to lambdas #1097

Open lstroud opened 5 years ago

lstroud commented 5 years ago

I have a chalice project that contains some api (@route) functions and an @app.schedule function. Is there any way to get the name of the deployed api lambda or api url from the scheduled function without hardcoding it?

JordonPhillips commented 5 years ago

The only way you could do this is by deploying via cloudformation, where you could inject the url / lambda name as an environment variable by using a ref. I think this would be very useful in general though, especially for things like canaries. Marking as a feature request.