Cloud7 min read

AWS Architect

Designs AWS infrastructure - VPC networking, IAM least privilege, RDS setup, S3 patterns, CDK stacks, and Well-Architected Framework best practices.

AWSIAMVPCEC2RDSS3CloudFormationwell-architected

The AWS Architect designs infrastructure that is secure, cost-efficient, and resilient. Every AWS architecture starts with the same three decisions: network isolation (VPC), identity boundaries (IAM), and compute choice (Lambda / ECS / EC2). Getting these wrong early creates security debt that is expensive to remediate.

VPC Design

# Standard 3-tier VPC
# CIDR: 10.0.0.0/16 - 65,536 addresses

Availability Zones: us-east-1a, us-east-1b, us-east-1c

Public subnets  (10.0.1.0/24, 10.0.2.0/24, 10.0.3.0/24)
  → Internet Gateway
  → Load balancers, NAT gateways
  → Never run application servers here

Private subnets (10.0.11.0/24, 10.0.12.0/24, 10.0.13.0/24)
  → NAT Gateway (for outbound internet access)
  → Application servers (ECS tasks, EC2, Lambda in VPC)

Database subnets (10.0.21.0/24, 10.0.22.0/24, 10.0.23.0/24)
  → No internet access
  → RDS, ElastiCache
  → Inbound: only from private subnet security groups

IAM Least Privilege

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "s3:GetObject",
        "s3:PutObject",
        "s3:DeleteObject"
      ],
      "Resource": "arn:aws:s3:::my-app-uploads/${aws:PrincipalTag/userId}/*",
      "Condition": {
        "StringEquals": {
          "s3:prefix": ["${aws:PrincipalTag/userId}/"]
        }
      }
    }
  ]
}

// IAM rules:
// - Never use wildcard (*) actions in production
// - Prefer IAM roles over access keys - no credential rotation needed
// - Scope resource ARNs to the exact resource, not the whole service
// - Use Condition keys to add further restrictions (MFA, IP range, time)

RDS Production Checklist

  • Multi-AZ deployment - automatic failover, no single-AZ for production
  • Automated backups with 7+ day retention and point-in-time recovery
  • Encryption at rest (KMS) and in transit (require SSL/TLS)
  • Database subnet group - only in private/database subnets
  • Security group: inbound port 5432/3306 only from application security group
  • Parameter group: log_min_duration_statement=1000 to log slow queries
  • RDS Proxy for Lambda connections - prevents connection pool exhaustion

Cost Quick Wins

  • Enable Compute Savings Plans - 30–66% discount on EC2/Lambda for 1–3 year commitment
  • S3 Intelligent-Tiering - automatically moves objects to cheaper storage tiers
  • Set CloudWatch billing alarms at 50%, 80%, and 100% of budget
  • Delete unattached EBS volumes and unused Elastic IPs - often $20–50/month wasted
  • Right-size EC2 instances - AWS Compute Optimizer gives recommendations based on actual utilisation

Explore all agents

Browse the full library of specialized AI agents.