Engineering notes · Infrastructure as code

What a small AWS VPC lab teaches about cloud engineering

A useful infrastructure portfolio should explain the design, show the source, and make its verification limits clear.

Jamie Christian II ·

Scope: This independent learning lab defines AWS networking resources in Terraform. The configuration was validated locally; AWS infrastructure was not deployed. Application and database workloads are conceptual.

1. Separate reachability from access

A virtual private cloud defines the network boundary. The public subnet has a route toward an internet gateway and automatic public IPv4 assignment for eligible resources. The private subnet has neither automatic public IPv4 assignment nor a default internet route in this lab.

Logical two-tier VPC networkAn internet gateway connects to a public subnet with a conceptual application workload. An application security group can reach the conceptual database security group on TCP port 5432. The private subnet has no internet default route.VPC 10.0.0.0/16 · us-east-1Internet gatewayPublic subnet10.0.1.0/24Default route → IGWApplication SGPrivate subnet10.0.2.0/24No internet default routeDatabase SGTCP 5432 · application SG → database SG
Logical design only: security groups govern workload traffic, not subnet routing. No servers or database instance are provisioned.

2. Use security group references

The application security group permits HTTPS ingress on TCP 443 from IPv4 addresses. PostgreSQL ingress on TCP 5432 references the application security group instead of allowing arbitrary internet addresses. The app-to-database egress rule also uses a security group reference.

This illustrates a narrower access path, not a complete production security design. A live deployment would require reviewing actual workloads, identity controls, logging, availability and cost.

3. Validate without deploying

These commands check configuration format, initialize providers without a backend, and validate Terraform configuration. They do not create AWS resources.

terraform fmt -check -recursive
terraform init -backend=false -lockfile=readonly -input=false
terraform validate -no-color

The repository also contains a GitHub Actions validation workflow. Review the current run status separately: a workflow definition is not proof that it passed.

4. Document what remains unverified

The lab does not establish live connectivity, production availability, load balancing, database deployment, or operational monitoring. Those are separate design and testing milestones. Clear limitations make a portfolio easier to trust and discuss in an interview.

Explore the evidence

For the broader practice session, see the documented training log, including local Docker troubleshooting and Kubernetes deployment cleanup.

Share or support

If this explanation helps someone learn, share the article or contribute constructive feedback through the repository. Optional sponsorship helps maintain public projects across technology, data, and business.