Repository navigation
Description
Part of #44. Designed against #171's budget.
Context
Nodes run in public subnets with map_public_ip_on_launch = true and no NAT
(infra/terraform/foundations/aws-eks/main.tf:59-92); the EKS endpoint is
public to 0.0.0.0/0 (:164-167, variables.tf:40). Default node group is
3 x m7i.large (variables.tf:43-65).
Scope
- Private subnets for the node group; public subnets only for the NAT and the
ingress load balancer. - One NAT gateway (not per AZ) unless [Cost optimization] Budget the fixed-cost floor of the secure AWS reference before designing it #171 decides otherwise; S3 gateway
endpoint (free). No interface endpoints unless [Cost optimization] Budget the fixed-cost floor of the secure AWS reference before designing it #171 justifies one. - EKS API endpoint: restricted
public_access_cidrsdefault instead of
0.0.0.0/0, or private + documented access path. verification.tfvars.examplebesidesandbox.tfvars.example: region
eu-north-1, 2 nodes, Spot capacity (verification only, never the default),
slim preset. Add acapacity_typevariable if needed.
Acceptance
- Worker nodes have no public IPs.
- e2e passes on the verification sizing (evidence from AWS verification session 1: remote state + private network #275).
Runtime verification: agents have no AWS credentials. Ship the code plus a
short runbook section in the PR body (exact olf commands, expected evidence).
The maintainer verifies it on AWS in the batched session #275.
Depends on: #171.
One pull request. Read AGENTS.md first; all four gates must pass; stay under
~15 files / ~600 changed lines or split and say why. Docs/ADR changes land in
this PR if this PR makes them true. Do not widen scope — note adjacent problems
in the PR body.
Decision update (2026-11-19, maintainer)
Confirmed: one NAT gateway and the free S3 gateway endpoint (Iceberg traffic to S3 must not go through the NAT, which costs ~$0.045/GB). Spot capacity for the verification sizing matches the cost model: data lives in S3, so compute is stateless and can be elastic.
The foundation must also terraform apply/destroy cleanly against the AWS Emulator (#1302) before the real session #275.
Container registry: keep GHCR as the only publish target; no ECR repository. If NAT egress for image pulls or Docker Hub rate limits become a problem, add an ECR pull-through cache for GHCR, Docker Hub and Quay. That is a later, optional addition. The emulator cannot test it (ECR UploadLayerPart is a 501 stub there).
Activity