โ˜ AWS Cloud Architecture
Secure Payment Processing System
tannu-vpc ยท 10.0.0.0/16 ยท Multi-AZ ยท Production-Grade
Region: eu-north-1 (Stockholm)
VPC CIDR: 10.0.0.0/16
All systems operational
โ†— Click a flow step to highlight the request path
Select a flow step above to trace the request path through the architecture. Hover over any component to see its details.
๐Ÿ“Š
CloudWatch
Logs ยท Metrics ยท Alarms
๐Ÿ‘ค
Users / Clients
Web ยท Mobile ยท HTTPS
โ”€โ”€โ–ถ
๐ŸŒ
Internet Gateway
igw-tannu
โ”€โ”€โ–ถ
โš–๏ธ
Application Load Balancer
HTTPS :443 ยท alb-sg ยท Public Subnets AZ1 + AZ2
๐Ÿ”’ alb-sg: HTTPS from 0.0.0.0/0
๐Ÿ— tannu-vpc โ€” 10.0.0.0/16
SSH from My IP only
๐Ÿ–ฅ
Bastion Host
EC2 ยท Public Subnet ยท SSH :22
๐Ÿ”’ bastion-sg
Availability Zone 1 โ€” eu-north-1a
Public Subnet
10.0.1.0/24
โš–๏ธ
ALB Node
10.0.1.x
Private App Subnet
10.0.3.0/24
๐Ÿ–ฅ
EC2 Backend
Auto Scaling ยท HTTP :80 from ALB ยท SSH :22 from Bastion
๐Ÿ”’ ec2-sg
Private DB Subnet
10.0.5.0/24
๐Ÿ—„
RDS Primary
MySQL/PostgreSQL ยท Multi-AZ
๐Ÿ”’ db-sg
Availability Zone 2 โ€” eu-north-1b
Public Subnet
10.0.2.0/24
โš–๏ธ
ALB Node
10.0.2.x
Private App Subnet
10.0.4.0/24
๐Ÿ–ฅ
EC2 Backend
Auto Scaling ยท HTTP :80 from ALB ยท SSH :22 from Bastion
๐Ÿ”’ ec2-sg
Private DB Subnet
10.0.6.0/24
๐Ÿ—„
RDS Standby
MySQL/PostgreSQL ยท Multi-AZ Replica
๐Ÿ”’ db-sg
Incoming Traffic (HTTPS)
Internal App Traffic (HTTP)
Database Traffic (TCP)
Response Flow (HTTPS)
Public Subnet  
Private Subnet  
DB Subnet
๐Ÿ”’ Security Group Rules
alb-sg
โœ… Inbound: HTTPS :443 from 0.0.0.0/0
โœ… Inbound: HTTP :80 from 0.0.0.0/0 (redirect)
โ†’ Outbound: HTTP :80 to ec2-sg
ec2-sg
โœ… Inbound: HTTP :80 from alb-sg only
โœ… Inbound: SSH :22 from bastion-sg only
โ†’ Outbound: DB port to db-sg
db-sg
โœ… Inbound: :3306/:5432 from ec2-sg only
๐Ÿšซ No public internet access
โ†’ Isolated in private DB subnet
bastion-sg
โœ… Inbound: SSH :22 from My IP only
๐Ÿšซ No other inbound allowed
โ†’ Outbound: SSH :22 to ec2-sg