Create Flow Logs
Create a flow log for all traffic in VPC A and save it to the destination log group NetworkingWorkshopFlowLog.
Create CloudWatch Log group
First, let’s create a CloudWatch Log group to store flow logs in:
1. Navigate to the CloudWatch Console
-
In the menu on the left, click Log groups under Logs and click Create log group in the top right
-
Enter
NetworkingWorkshopFlowLogsGroup
as Log group name and click CreateCreate VPC Flow log
-
In the VPC Dashboard navigate to Your VPCs
-
Select
VPC A
, scroll down to the Flow Logs tab and click on Create flow log -
In the resulting Flow log settings section
- Enter
NetworkingWorkshopFlowLog
in the Name field - Set Filter to
All
- Set Maximum aggregation interval to
1 minute
- Leave Destination as
Send to CloudWatch Logs
- Set Destination log group as
NetworkingWorkshopFlowLogsGroup
- Select
NetworkingWorkshopFlowLogsRole
from the IAM role dropdown (this IAM role was created by the workshop's base CloudFormation template)
- Enter
-
Click on Create flow log
You completed setup of the VPC flow logs.