Learning Objectives
By the end of this chapter, you will be able to:
- Select edge-protection mechanisms (Shield, WAF, CloudFront, Network Firewall, Route 53 Resolver DNS Firewall) against a stated threat model, and reason about private connectivity through PrivateLink, interface endpoints, and gateway endpoints.
- Operate the central management plane for edge protections through Shield Advanced subscriptions, AWS Firewall Manager policies, and the observability stack (VPC Flow Logs, Transit Gateway flow logs, Resolver query logs, Network Access Analyzer, Reachability Analyzer).
- Configure and tune Shield Advanced and WAF rule groups against volumetric, protocol, and application-layer attacks, and build hardened AMIs through EC2 Image Builder pipelines.
- Apply layered defenses against DDoS, bot, and web-application attacks and pair them with the agentless compute access patterns (Session Manager, EC2 Instance Connect, Patch Manager).
- Restrict traffic by geographic origin, IP reputation, and rate-based controls, and integrate Amazon Inspector and ECR image scanning into continuous validation.
- Build a defensible VPC topology with subnets, route tables, security groups, network ACLs, peering, and Transit Gateway, and apply that topology to ECS, EKS, and Fargate workloads.
- Connect on-premises networks to AWS through Site-to-Site VPN, Direct Connect, MACsec, and AWS Verified Access, and harden serverless Lambda workloads.
- Design east-west and north-south inspection patterns through Network Firewall, security groups, and network ACLs, with pipeline and code security applied through CodeGuru Security and Amazon Q Developer.
Executive Summary
- Edge protection is a layered control: Shield absorbs L3 and L4 volumetric floods, WAF inspects L7 requests, CloudFront positions the AWS network as the absorption surface, and Network Firewall plus Resolver DNS Firewall extend inspection into VPC ingress and egress paths.
- Private connectivity through gateway endpoints (S3, DynamoDB), interface endpoints (PrivateLink), and Resource Access Manager shares is the canonical alternative to NAT-translated egress for AWS APIs.
- Compute security relies on hardened golden images built by EC2 Image Builder, agentless administrative access through Session Manager and EC2 Instance Connect, and continuous validation by Inspector across EC2, ECR, and Lambda.
- Network architecture and east-west inspection (Network Firewall in centralized inspection VPC, plus mid-tier security groups) provide the steady-state controls that detective services in Chapter 2 observe.
Assumptions
- The reader has the Chapter 1 incident-response and Chapter 2 detection and logging plumbing in place: organization CloudTrail in the log archive account, GuardDuty and Security Hub delegated administration, VPC Flow Logs streamed through Firehose to Security Lake, and EventBridge routing for findings.
- Regional coverage is the multi-Region symmetric pattern documented by AWS; partner connection differences for Direct Connect are not exhaustively enumerated.
- Where ingress and egress decisions intersect with IPv6, the discussion calls it out; otherwise IPv4 is assumed.
- Terms defined in earlier chapters (quarantine security group, log archive account, organization CloudTrail, Security Hub automation rule, CloudWatch Logs Insights, ASFF, OCSF, Amazon Security Lake, IMDSv2, EC2 Image Builder, SSM Patch Manager) are reused with the same meaning and not redefined.
