meal-order-manager/terraform/bootstrap/README.md
Adam Moussa f48a82c476
Some checks are pending
Deploy API / Resolve target (push) Waiting to run
Deploy API / Deploy API to (push) Blocked by required conditions
feat(api): serve meals on ECS Fargate instead of Lambda (PLAT-215) (#199)
* 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.

* fix(jobs): run delayed close and reminder deliveries

Wall-clock skip windows dropped the only weekly SQS attempt when Scheduler already fired in Eastern time. Dev schedules stay disabled.

* fix(api): return JSON objects and stop logging job payloads

Flask now jsonify-s handler dicts so API responses are not HTML, and the worker logs only event and status.

* fix(ci): restore the reusable workflow so the required check is named ci / ci

Inlining the job reported `ci` instead of the org ruleset's `ci / ci`.

* fix(secrets): drop unused os import so ruff check passes

* style: apply ruff format so ci-python-app lint passes

* fix(infra): give meals its own VPC because prod has none

* chore(security): re-key ALB SG checkov suppression after vpc.tf
2026-09-21 19:34:24 +00:00

12 lines
704 B
Markdown

# 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.