Skip to content
15 years of IT experience
CybexsoftConsultancy Services
← Back to case studies

AWS Full-Stack Infrastructure

Full-stack AWS infrastructure for a modern SaaS product

A growing SaaS team needed a production-ready AWS platform from scratch. We designed and delivered a Terraform-managed infrastructure covering a CDN-backed frontend, containerized backend on ECS, Aurora MySQL with read replicas, and a secure VPC with public and private subnets.

Industry
B2B SaaS
Engagement
9-week build
Team
Platform + backend
Focus
IaC, ECS, Aurora, VPC

The situation

What was wrong

The team had outgrown their stitched-together staging environment and needed a repeatable, secure, production-grade AWS platform to support their next growth phase. Nothing existed: no VPC design, no deployment automation, no database strategy.

  • No production AWS infrastructure — manual, ad-hoc provisioning in staging only.
  • Frontend and backend deployed separately with no shared pipeline or secret management strategy.
  • Database layer running on a single RDS instance with no read-replica strategy or failover.
Engagement focus
TerraformAWSECSAuroraCI/CD
Outcome

Fully automated, production-ready infrastructure delivered in under 10 weeks.

How we worked

The approach, step by step

Stabilise delivery early, then build the foundation that keeps it stable once we hand it back.

    1

    Network foundation

    Designed a secure VPC with public and private subnets across two availability zones, NAT gateways, route tables, and security groups following least-privilege principles.

    2

    Frontend delivery pipeline

    Built an S3-hosted static frontend with CloudFront as the CDN layer, automated with AWS CodePipeline to trigger on every main branch merge.

    3

    Backend compute and secrets

    Containerized the API layer and deployed to ECS Fargate behind an ALB, with CodePipeline handling image builds and blue/green deployments. All secrets managed via AWS Secrets Manager with IAM task roles.

    4

    Database layer

    Provisioned an Aurora MySQL cluster with one writer and two read replicas across AZs, configured with automated backups, parameter groups, and read-replica endpoint routing for the application.

    5

    IaC and handoff

    All infrastructure codified in Terraform with remote state in S3 and DynamoDB locking. Delivered module documentation and a runbook for day-2 operations.

Handover

What we delivered

  • Terraform modules for VPC, ECS, ALB, Aurora, S3, CloudFront, and CodePipeline
  • Frontend CI/CD: CodePipeline → S3 → CloudFront invalidation
  • Backend CI/CD: CodePipeline → ECR → ECS blue/green deploy
  • Aurora MySQL cluster with 2 read replicas and automated backups
  • Secrets Manager integration with ECS task IAM roles
  • Network architecture with public/private subnets across 2 AZs

Stack

What it runs on

TerraformAWS VPCS3CloudFrontAWS CodePipelineECS FargateALBSecrets ManagerAurora MySQLECRIAM

Afterwards

What changed

Measured after handover, once the client's own team was running the system without us.

9 wk
End-to-end delivery
100%
Infrastructure as Code coverage
2x
DB read throughput via replicas

Planning something like this?

Tell us what you are trying to move, migrate or automate and we will reply within one business day with an honest read on the work — including the parts we think you should not do.

More engagements