meal-order-manager/terraform/bootstrap
Adam Moussa 3e9a1c60bf
feat(api): serve meals on ECS Fargate instead of Lambda
Keep the Flask app always-on with in-process jobs so CloudFront no longer fronts a cold-start API Gateway.
2026-09-21 14:37:48 -04:00
..
README.md feat(api): serve meals on ECS Fargate instead of Lambda 2026-09-21 14:37:48 -04:00

Bootstrap image for the ECS service before the first GitHub Actions deploy.

Terraform ignores later container_definitions; this command only has to pass

the ALB health check on GET /api/health until deploy-api.yaml ships the real image.

First apply of aws_iam_policy.ecs_task_boundary and

aws_iam_policy.github_deploy_boundary needs the hcptf-bootstrap window:

CreatePolicy on policy/tf-managed/* lives only on hcptf-bootstrap

(seahaven-org-baseline). Point this workspace's TFC_AWS_* at bootstrap,

apply, then retarget at hcptf-meal-order-manager.

python:3.12-slim with an inlined ThreadingHTTPServer on :8080 that returns {"stage":"bootstrap","sha":"bootstrap"} for any GET.