Case study · Three-tier platform on AWS

Three-tier AWS platform.
Infrastructure, delivery & recovery.

A three-tier application on AWS, with infrastructure as code, Kubernetes workloads, automated releases, and operational monitoring. My work covers the architecture, implementation, security controls, and recovery validation.

Case study by · DevOps & Cloud Engineer

Role
Solo: design, build, operate
Scope
Infrastructure, delivery & operations
Core stack
AWS · Terraform · Kubernetes · GitHub Actions
Outcome
Reviewed against AWS Well-Architected
Three connected platforms with a web interface, application servers and database cylinders.
AI-generated concept illustrationThree application tiers: the web frontend connects to the backend API, which works with persistent database storage. The implementation details follow below.
Overview

Repeatable infrastructure. Controlled releases.

I designed and operated the infrastructure for a web frontend, a backend API and a database, covering networking, application delivery, persistent storage, and monitoring.

The implementation makes changes reviewable and repeatable through Terraform modules, Kubernetes manifests, CI/CD pipelines, and security gates. Recovery tests and an architecture review document how the system behaves under failure and where operational costs matter.

Engineering requirements and implemented solutions
ConcernRequirementImplementation
InfrastructureRepeatable provisioningTerraform-provisioned VPC
RuntimeScalable workloadsKubernetes with autoscaling
ReleasesControlled releasesPipeline with Snyk and k6 gates
VisibilityOperational visibilityPrometheus, Grafana, Zabbix, CloudWatch
RecoveryAutomatic recoveryHealth checks and self-healing
SecretsCentralized secretsHashiCorp Vault
Experience in practice

Explore the engineering.

Select an area to see my contribution, the implementation, and the result. The board highlights the tools and components used in that work.

Six experience areas

  1. 1EC2 · NginxCloud & systems
  2. 2GitHub ActionsCI/CD
  3. 3Terraform · ASGIaC & high availability
  4. 4Docker · K8sContainers & K8s
  5. 5Snyk · VaultSecurity & observability
  6. 6Well-ArchitectedWell-Architected review
architecture · platform toolkit

Delivery

  • Git flow & PRs
  • Render deploy
  • GitHub Actions
  • Rollback path
  • Blue/green releases
  • Deploy to cluster
  • Jenkins
  • Snyk gate
  • k6 load test

Network & edge

  • Route53 DNS
  • Nginx + Certbot
  • Custom VPC
  • Load balancer
  • Bastion host
  • Ingress

Compute

  • Single EC2 instance
  • Auto Scaling Group
  • Docker images
  • Kubernetes
  • HPA
  • Helm + ArgoCD

Data

  • Database on the host
  • DB in private subnet
  • StatefulSet + PV
  • Backup & recovery

Infrastructure as code

  • AWS console
  • Terraform modules
  • S3 remote state
  • DynamoDB lock
  • CloudFormation

Observability & security

  • Security groups + UFW
  • IAM roles
  • Prometheus + Grafana
  • CI secrets
  • Loki logs
  • Zabbix
  • CloudWatch
  • Vault
  • CloudTrail
  • Well-Architected review
EC2 · Linux · Nginx

Cloud & systems

Contribution

A hardened application deployment with DNS, TLS, and controlled network access.

Implementation

Configured EC2, Linux services, security groups, and UFW. Set up Nginx as a reverse proxy, connected a custom domain, and enabled HTTPS with Certbot.

Result

Resolved SSH access issues during hardening and completed the HTTPS deployment.

Read the technical note →
GitHub Actions · Git

CI/CD & releases

Contribution

Repeatable deployments with a rollback path and visibility into application health.

Implementation

Automated the application release workflow with GitHub Actions, configured CI secrets and rollback handling, and connected Prometheus and Grafana for CPU, memory, and request-latency monitoring.

Result

Replaced manual SSH-and-restart releases with an automated pipeline.

Read the technical note →
Terraform · AWS Auto Scaling

Infrastructure & availability

Contribution

Reviewable infrastructure changes and automatic replacement of unhealthy instances.

Implementation

Defined the VPC, public and private subnets, load balancer, and backend Auto Scaling Group in reusable Terraform code. Configured S3 remote state, DynamoDB locking, and blue/green releases.

Result

Validated instance recovery and protected shared state against concurrent applies.

Read the technical note →
Docker · Kubernetes

Containers & Kubernetes

Contribution

Containerized services with ingress, autoscaling, and persistent database storage.

Implementation

Packaged all three tiers with Docker and Docker Compose. Deployed the stack to Kubernetes with Ingress, Horizontal Pod Autoscaling, and a StatefulSet-backed database, and connected CI/CD to the cluster.

Result

Verified that the database retained its data through a pod restart.

Read the technical note →
Snyk · k6 · Vault

Security & observability

Contribution

Security and performance checks in the release workflow, supported by metrics and logs.

Implementation

Integrated Snyk scanning and k6 load tests into CI/CD. Moved pipeline secrets into Vault and configured Zabbix and CloudWatch alongside Prometheus and Grafana to compare operational visibility.

Result

Releases are gated by vulnerability scans and load tests; pipeline secrets use centralized storage.

Read the technical note →
AWS Well-Architected

Architecture & cost review

Contribution

An end-to-end assessment of the platform’s architecture and operating costs.

Implementation

Reviewed the Terraform infrastructure, Kubernetes application, delivery pipeline, and monitoring against the AWS Well-Architected Framework. Assessed billing, savings plans, S3 storage classes, and recovery considerations.

Result

Documented architecture findings, cost considerations, and operational fixes in the case study.

Read the technical note →
Application delivery

How a change reaches the cluster.

GitHub Actions builds the application, runs Snyk vulnerability scans and k6 load tests, and deploys to Kubernetes. Prometheus and Grafana provide visibility after release.

COMMIT → RELEASE → OBSERVE
  1. 01 · Commit

    Git & GitHub

    Branches, pull requests, forking workflow

    source control
  2. 02 · Build

    GitHub Actions

    Workflows, runners and CI secrets

    build
  3. 03 · Scan

    Snyk

    Every push checked for vulnerabilities

    security gate
  4. 04 · Load test

    k6

    Performance regressions caught early

    performance gate
  5. 05 · Deploy

    Kubernetes

    Pipeline deploys straight to the cluster

    release
  6. 06 · Observe

    Prometheus & Grafana

    Metrics, dashboards and alerting

    feedback
Operational findings

Reliability, recovery, and resolution.

Documented incidents, resilience tests, and architecture findings, with the response and operational practice behind each one.

  • INC-01 · AccessResolved

    SSH access disrupted during hardening

    What happened
    SSH configuration changes interrupted access while I was tightening EC2 security groups.
    Outcome
    Restored access and completed the Nginx deployment with a custom domain and HTTPS via Certbot.
    Practice
    Harden one layer at a time, and keep a way back in while you do it.
  • INC-02 · TerraformResolved

    Concurrent Terraform apply risk

    What happened
    Came close to applying the same plan from two terminals at the same time.
    Fix
    Added Terraform state locking with DynamoDB on top of the S3 remote state.
    Practice
    Use shared state locking to prevent concurrent infrastructure changes.
  • INC-03 · AvailabilitySelf-healed

    Auto Scaling recovery validation

    What happened
    Terminated a backend instance to test Auto Scaling health checks and replacement behavior.
    Outcome
    Health checks detected the failed instance and the group restored capacity with a healthy replacement.
    Practice
    Self-healing only counts once you’ve actually tested it.
  • INC-04 · StorageNo data lost

    The database pod restarted

    What happened
    Validated database behavior through a pod restart on Kubernetes.
    Outcome
    The database retained its data after the pod restarted, using the StatefulSet and its Persistent Volume.
    Practice
    Validate persistent storage and data retention when running stateful workloads.
  • INC-05 · SecretsResolved

    Secrets living in CI variables

    What happened
    Pipeline secrets were stored as CI variables.
    Fix
    Moved pipeline secrets into HashiCorp Vault.
    Practice
    Centralize secret storage and control how deployment workflows access credentials.
  • INC-06 · CostReviewed

    AWS architecture and cost assessment

    What happened
    Reviewed resource costs alongside reliability and security in the platform architecture.
    Fix
    Worked through billing, savings plans and S3 storage classes, then reviewed the stack against the Well-Architected Framework.
    Practice
    Cost is part of the architecture.
Keep exploring

Want the tooling detail?

Explore the technical capabilities behind the platform and the implementation notes that explain the key decisions.