How it works...
VPC flow logs help us capture IP traffic to and from our VPCs. Data from VPC flow logs can be published to either CloudWatch logs or to an S3 bucket. We can choose to log only accepted traffic, rejected traffic, or both. VPC flow logs can be created at different levels, such as the VPC level, subnet level, and Network Interface level.
In the recipe, within the filter dropdown, we selected All to log all IP traffic to and from our VPCs. We can choose Accept to log only accepted traffic, Reject to log only rejected traffic, and All to log both accepted and rejected traffic. We needed a CloudWatch log group and an IAM role with permission to log to that log group. We created the IAM role from the console using the Set Up Permissions ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access