func-api-health-get
Overview
Manages the Lambda function that serves the GET /health endpoint. Returns 200 OK unconditionally. Used by monitoring and integration test suites to confirm the API Gateway and Lambda integration are operational.
CloudFormation Stack
firefly-func-api-health-get
CloudWatch Logs
| Setting | Value |
|---|---|
| Log group | /aws/lambda/firefly-func-api-health |
| Retention | 30 days |
Dependencies
Deploy Dependencies
| Workflow | Reason |
|---|---|
| api-gateway | API Gateway ID required as SAM parameter |
Delete Dependencies
None — this workflow has no prerequisites.
Required By
Required By Deploy
| Workflow | Reason |
|---|---|
| run-integration-tests | Health endpoint must exist before integration tests run |
Required By Delete
| Workflow | Reason |
|---|---|
| api-gateway | All Lambda integrations must be removed before the API Gateway stack can be deleted |
Deploy Workflow
Description
Looks up the API Gateway ID from the firefly-api-gateway stack output, then builds and deploys the function. The function is wired to the GET /health route with no authorizer.
Steps
- Configure AWS credentials.
- Look up
ApiIdfrom thefirefly-api-gatewaystack output. - SAM build.
- SAM deploy with parameters:
ApiId
Sequence Diagram
Delete Workflow
Description
Runs sam delete to remove the CloudFormation stack and the Lambda function.
Steps
- Configure AWS credentials.
- SAM delete
firefly-func-api-health-get.
Sequence Diagram
Failure Scenarios
| Scenario | Behavior |
|---|---|
| API Gateway stack not deployed | describe-stacks call fails; workflow fails before SAM deploy is attempted. Deploy api-gateway first. |
| Route already registered by another function | CloudFormation fails to create the GET /health route integration. Verify no other stack owns this route. |