GDPR-Compliant AWS Infrastructure with Terraform
πΌ GDPR-Compliant AWS Infrastructure β Deploy in 10 Minutes
Set up encrypted, auditable, and production-ready AWS cloud architecture with Terraform. No guesswork. No lawyers. Just code.
Core GDPR Requirements:
- All data encrypted at rest (KMS) and in transit (TLS).
- Isolated networking (private subnets, no public RDS/ECS).
- Audit logging (CloudTrail + VPC Flow Logs + S3 access logs).
- Automated backups (RDS snapshots retained for 35 days).
- EU data residency (`eu-west-1` or eu-central-1).
Project Structure Overview
βββ π README.md # GDPR documentation, setup instructions
βββ π main.tf # Core modules (VPC, RDS, ECS, KMS, Monitoring)
βββ π variables.tf # Input variables with descriptions
βββ π outputs.tf # Endpoints, ARNs, etc.
βββ π terraform.tfvars.example # Example non-sensitive configs (copy to terraform.tfvars)
βββ π backend.tf # S3/DynamoDB remote state configuration
βββ π .gitignore # Git ignore file
β
βββ π modules/ # Reusable modules:
β βββ π vpc/ # VPC, private subnets, NAT, Flow Logs
β β βββ π main.tf
β β βββ π variables.tf
β β βββ π outputs.tf
β βββ π rds/ # Encrypted PostgreSQL (private, no public IP)
β β βββ π main.tf
β β βββ π variables.tf
β β βββ π outputs.tf
β βββ π ecs/ # Fargate w/ private subnets + IAM roles
β β βββ π main.tf
β β βββ π variables.tf
β β βββ π outputs.tf
β βββ π kms/ # Encryption keys (RDS, S3, Secrets)
β β βββ π main.tf
β β βββ π variables.tf
β β βββ π outputs.tf
β βββ π monitoring/ # CloudTrail, S3 Log Bucket
β βββ π main.tf
β βββ π variables.tf
β βββ π outputs.tf
β
βββ π scripts/
βββ π deploy.sh # Init + plan + apply (manual approval)
βββ π destroy.sh # Full destroy (GDPR data purge - with confirmation)
π Whatβs Inside? β Pre-built Terraform modules for GDPR-compliant AWS infrastructure (e.g., encrypted S3, proper logging, IAM policies, data residency). β Step-by-step docs for deployment in under 30 minutes. β Best practices for audit trails, data encryption, and access controls. β Customizable for your specific use case (SaaS, startups, enterprises). π₯ Why This? Save weeks of compliance research and setup. Avoid fines (GDPR penalties can hit β¬20M or 4% of global revenue). Built by a DevOps engineer whoβs dealt with compliance headaches. π©βπ» Whoβs This For? Startups/SaaS companies handling EU user data. Freelancers deploying apps for clients. Enterprises needing a quick compliance baseline. π΅ Pricing Basic ($99): Terraform code + docs. Pro ($199): Basic + 1-hour support call + extra modules (e.g., HIPAA-ready VPCs). Enterprise ($499): Pro + priority support + custom tweaks.