Miserlou/Zappa
View on GitHubAttempt to Import Event Sources - Warn if Function Does Not Exist
Open
#721 opened on Mar 15, 2017
help wanted
Description
Context
Feature Request to warn about typos.
In the zappa settings for events, If there are typos in event source function names, such as my recent use of a dash instead of an underscore, the error isn't apparent until zappa responds to the event and is unable to import the function used in response to the event.
Expected Behavior
For each event source in the stage, import the function to ensure it is reachable. Do this prior to uploading the zip. If the function is not reachable, raise an exception and message for the user.
"You have an event setup to call {{ function_name }}, but that that function cannot be imported. Please check for typos and ensure that the function is reachable."
Actual Behavior
Assumes function names are reachable.