Please follow these steps to create an IAM role with the required permissions to access AWS flowlogs, CloudWatch, and EC2 instances through NFA:
{
"Version": "2012-10-17",
"Statement": [
{ "Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"ec2:DeleteFlowLogs",
"logs:CreateLogStream",
"logs:DescribeLogGroups",
"ec2:CreateFlowLogs",
"logs:DescribeLogStreams",
"ec2:DescribeFlowLogs",
"ec2:*",
"logs:CreateLogGroup",
"logs:PutLogEvents"
],
"Resource": "*"
}
]
}