apm-wo-analysis/terraform/bootstrap/stub/handler.py
Adam Moussa c53a1f2159
fix(lambda): expose interactions.handler on the bootstrap stub
slack_interactions is configured for interactions.handler. A recreate that
reloads the stub zip must return 503 instead of failing at init.
2026-09-16 16:45:37 -04:00

13 lines
480 B
Python

"""Bootstrap stub. GitHub Actions replaces this zip via update-function-code.
Keep a module for every Lambda handler setting in locals.functions. A recreate
must return 503 instead of failing at init because the entrypoint is missing.
"""
def handler(event, context):
return {
"statusCode": 503,
"headers": {"content-type": "application/json"},
"body": '{"error":{"code":"NOT_DEPLOYED","message":"Function code has not been deployed yet."}}',
}