Skip to content

AWS infrastructure as code for deploying a Python backend API, focusing on security, scalability, and cost-aware design.

Notifications You must be signed in to change notification settings

rfransozo/AWS-Python-Backend-Infra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Python Backend Infrastructure

Infrastructure as Code (IaC) for deploying a Python backend API on AWS with a focus on security, scalability, and cost awareness.

Overview

This repository defines the AWS infrastructure required to run a containerized Python backend in a production-like environment.

The goal is to demonstrate practical cloud architecture, not a fully enterprise-grade setup.

Architecture

The infrastructure includes:

  • VPC with public and private subnets
  • Application Load Balancer
  • ECS-based container execution
  • RDS PostgreSQL
  • IAM roles with least-privilege access
  • Centralized logging

Tech Stack

  • AWS
  • Terraform
  • Docker
  • ECS
  • RDS PostgreSQL

Key Design Decisions

  • ECS over EKS: lower operational complexity
  • Private subnets for compute: reduced attack surface
  • Terraform modules: separation of concerns and reusability
  • Single-region deployment: simplicity and cost control

Cost Considerations

  • Right-sized instances
  • Minimal NAT usage
  • No always-on autoscaling by default

Trade-offs

  • Limited high availability (single region)
  • No advanced observability stack

Non-Goals

  • Kubernetes orchestration
  • Multi-cloud support
  • Zero-downtime deployments

Possible Extensions

  • Blue/green deployments
  • Multi-environment support
  • Enhanced monitoring

About

AWS infrastructure as code for deploying a Python backend API, focusing on security, scalability, and cost-aware design.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published