Using Console
Using CLI
<VPC_ID>
with the ID of the VPC where your EC2 instance is located, <LOG_GROUP_NAME>
with the name of the CloudWatch Logs group where the flow logs will be stored, and <LOGGING_PERMISSION_ARN>
with the ARN of the IAM role that grants permission to publish flow logs to CloudWatch Logs.Using Python
DeliverLogsPermissionArn
parameter with the ARN of the IAM role that has permissions to publish logs to CloudWatch Logs.
LogGroupName
parameter with the desired CloudWatch Logs log group name.