Skip to content
All projects

Automation & IaC

Highly Available AWS Infrastructure & GitLab CI/CD

Production AWS infrastructure for Spring Boot + React applications using reusable Terraform modules, a private backend behind ALB routing, and GitLab CI/CD delivery.

  • Terraform modules
  • EC2
  • ALB
  • RDS PostgreSQL
  • VPC
  • Security Groups
  • Route 53
  • GitLab CI/CD
  • NGINX

The problem

Spring Boot and React applications needed production-grade AWS hosting: a public frontend, a backend and database that are not internet-facing, and a repeatable way to build, test and ship every change.

What I built

  • Wrote reusable Terraform modules for VPC, EC2, ALB, RDS (PostgreSQL), Security Groups and Route 53.
  • Designed a public-frontend / private-backend layout with ALB-based routing between them.
  • Locked down east–west traffic with Security Groups so only the backend can reach the database.
  • Implemented GitLab CI/CD pipelines for automated build, test and deployment.

Architecture

Simplified request flow and delivery pipeline.

DNS

  • Route 53Domain routing

Public subnets

  • Application Load BalancerPath-based routing
  • React frontendPublic tier

Private subnets

  • Spring Boot APIEC2

Data

  • Amazon RDSPostgreSQL
Security Groups allow only frontend → API → database traffic

Delivery pipeline

  1. git push
  2. GitLab CI
  3. Build
  4. Test
  5. Deploy to EC2

Outcome

  • Backend and database are reachable only from inside the VPC.
  • New environments come from the same modules instead of manual console work.
  • Every change goes through the same build → test → deploy pipeline.

Need something like this built?

Happy to talk through your AWS infrastructure or delivery pipeline.

Get in touch