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.
More on VPC and Network Design
Walk through a production VPC layout for a multi-tier app.BeginnerHow do you size VPC CIDRs to avoid painting yourself into a corner?IntermediateOne NAT gateway or one per AZ?BeginnerWhat are the biggest levers to reduce NAT gateway cost?IntermediateWhich VPC endpoints do you create by default in a private EKS or ECS VPC?IntermediateHow do you lock down what can go through a VPC endpoint?Advanced