apm-wo-analysis/terraform/bootstrap/stub/handler.py
Adam Moussa 8dc3f71e6c
Some checks failed
Deploy / Deploy to prod (push) Has been cancelled
fix(lambda): expose interactions.handler on the bootstrap stub (#59)
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 20:52:14 +00: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."}}',
}