Interview Prep/AWS/VPC and Network Design

Security groups: what conventions keep them manageable?

BeginnerProductionVPC and Network Design
Answer

Reference security groups instead of CIDRs inside the VPC (the app SG allows 443 from the ALB SG; the DB SG allows 5432 from the app SG). One SG per role, not per instance. No 0.0.0.0/0 inbound except on internet-facing load balancers. Descriptions on every rule. Manage them in code and alert on console changes via Config rule vpc-sg-open-only-to-authorized-ports or restricted-ssh.

aws All AWS questions Roadmap: AWS core services

More on VPC and Network Design