To capture the AWS flows in Network Insight, enable the flow logging in the AWS console.
Create a CloudWatch log group in AWS for publishing VPC level flow logs and then Flow Logs per the VPC of interest using the same log group.
Create a flow logs role that has sufficient permission to publish the flow log to the CloudWatch Logs log group. See http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/flow-logs.html#flow-logs-iam.
- Navigate to the CloudWatch Logs page.
- Create a Log Group.
- Change the retention period to the appropriate duration based on the required analysis period.
- Choose a VPC, and click Create Flow Log.
- Enter the required information to configure the flow logs.