chalice icon indicating copy to clipboard operation
chalice copied to clipboard

Deploy time reference to lambdas

Open lstroud opened this issue 7 years ago • 1 comments

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?

lstroud avatar Mar 27 '19 20:03 lstroud

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.

JordonPhillips avatar Apr 01 '19 16:04 JordonPhillips