CASE STUDY 05 / Personal projects · Cloud infrastructure

AWS Infrastructure.

Two approaches to provisioning a backend.

Terraform projects exploring a load-balanced web application and a serverless event API.

  • AWS
  • Terraform
  • Python
  • EC2
  • Lambda
  • DynamoDB
MY ROLE

Infrastructure configuration & Python API implementation

CONTEXT

Independent portfolio projects · Two source repositories

STATUS

Source configurations available; live deployment not asserted

PROJECT EVIDENCE

Two configurations. Source included.

The Terraform files and Python handler document the implementation.

Web infrastructure sourceEvent API source

THE CONTEXT

The problem

A web server and a small event API have different infrastructure needs. These projects explore how to describe networking, compute, access, and data storage in repeatable Terraform configurations.

MY CONTRIBUTION

What I built

  • Configured a VPC with public and private subnets across two Availability Zones, an Application Load Balancer, a launch template, and an EC2 Auto Scaling group.
  • Restricted instance HTTP ingress to the load balancer’s security group and configured target-group health checks.
  • Built a separate API Gateway → Python Lambda → DynamoDB event API with GET and POST endpoints.
  • Defined Lambda permissions for DynamoDB writes/scans and CloudWatch logging in Terraform.

HOW IT CONNECTS

Architecture & request paths

  1. 01

    Describe

    Terraform defines networking, security groups, compute, and service permissions.

  2. 02

    Serve

    ALB → EC2 Auto Scaling group across two public subnets; Apache bootstraps with user data.

  3. 03

    Handle events

    API Gateway → Python Lambda → DynamoDB, with permissions for CloudWatch logs.

THE REASONING

Decisions & tradeoffs

Keep the architecture honest

The web configuration creates private subnets, but the Auto Scaling group currently uses public subnets. The case study reflects that implementation rather than implying that compute runs privately.

Compare servers and functions

EC2 makes the server and networking lifecycle explicit. The serverless API moves request execution to Lambda and stores events in an on-demand DynamoDB table.

CHECKING THE WORK

Testing & validation

The web configuration defines HTTP target-group health checks. The Lambda handler handles GET, POST, and unsupported methods and serializes DynamoDB decimal values. These are code-level mechanisms; no load test, uptime benchmark, or monitored production deployment is claimed.

WHERE IT STANDS

Outcome & limitations

Two inspectable examples of infrastructure as code, showing how resource dependencies and permissions connect to an application’s request path.

The examples need further work before production use: TLS for the web endpoint; authentication, input validation, error handling, and scan pagination for the API. CloudWatch log permissions are configured, but dashboards and alarms are not evidenced in the source.