Using Console
Using CLI
<your-vpc-id>
with the ID of your VPC, <your-log-group-name>
with the name of the CloudWatch Logs group where the flow logs will be stored, and <your-iam-role-arn>
with the ARN of the IAM role that has permission to publish logs to CloudWatch Logs.<your-network-interface-id>
with the ID of the network interface associated with your EC2 instance.Using Python
DeliverLogsPermissionArn
, ResourceIds
, and LogDestination
with your specific values.