Skip to content

testenv: free-tier private topology (Terraform) - #13

Merged
nkcoder merged 1 commit into
mainfrom
slice-1/testenv
Jul 11, 2026
Merged

testenv: free-tier private topology (Terraform)#13
nkcoder merged 1 commit into
mainfrom
slice-1/testenv

Conversation

@nkcoder

@nkcoder nkcoder commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Closes #12. Dev/test environment to seed the golden fixture with real ENIs.

What

A fully private topology (no IGW/NAT) in a dedicated VPC, tagged project=reachr-testenv:

VPC 10.20.0.0/16
 └─ 2 private subnets (2 AZs)
     ├─ internal ALB [alb-sg] :80 -> tg :8080 -> 2x EC2 t2.micro [app-sg]
     ├─ RDS db.t3.micro Postgres [db-sg]
     └─ S3 gateway endpoint (free) -> prefix-list route
SG chain: alb-sg -:8080-> app-sg -:5432-> db-sg  (SG-references-SG)

Why

Gives us real attached ENIs (ALB/instance/RDS), a VPC endpoint + prefix-list route, and the SG-references-SG chain — exactly what we need to design the topology.json schema (#7) and seed a realistic fixture, without the non-free-tier parts (Fargate, interface endpoints, NAT).

Cost

Within the 12-month Free Tier (EC2 t2.micro / RDS db.t3.micro / 1 ALB, 750 hrs each; S3 gateway endpoint free). Tear down after capturing the fixture.

Verified

  • terraform fmt clean, terraform validate passes.
  • Not applied by me (uses your AWS creds + incurs cost) — you run terraform apply.

Dedicated private VPC (no IGW/NAT) with an internal ALB, 2x t2.micro app
instances (stand-in for ECS), RDS Postgres, S3 gateway endpoint, and an
alb->app->db SG-references-SG chain. All tagged project=reachr-testenv.
Gives real ENIs + endpoint + SG chain to design the schema and seed the
golden fixture.

Closes #12
@nkcoder
nkcoder merged commit 0de85d7 into main Jul 11, 2026
1 check passed
@nkcoder
nkcoder deleted the slice-1/testenv branch July 11, 2026 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

testenv: free-tier private topology (Terraform) to seed the golden fixture

1 participant