A company's CloudOps engineer is troubleshooting communication between the components of an application. The company configured VPC flow logs to be published to Amazon CloudWatch Logs However, there are no logs in CloudWatch Logs. What could be blocking the VPC flow logs from being published to CloudWatch Logs?
Select an option, then click Submit answer.
Reference / correct answer:
The IAM policy that is attached to the IAM role for the flow log is missing the logs:CreateLogGroup permission.
Most accepted answer: A. The IAM policy that is attached to the IAM role for the flow log is missing the logs:CreateLogGroup permission.
Community votes: A=3
Selected Answer: A For VPC Flow Logs to publish to CloudWatch Logs, AWS needs permissions upvoted 1 times
Selected Answer: A B. logs:CreateExportTask will only affect the IAM role's ability to egress logs from CloudWatch, not publishing to CloudWatch. C. VPC Flow Logs will work just fine with IPv4 and IPv6 addresses. D. You can use VPC flow logs to analyze communication between peered VPCs by attaching to the adapter used for peering, so this won't affect VPC flow logs being put into CloudWatch. upvoted 1 times
Selected Answer: A When publishing VPC Flow Logs to Amazon CloudWatch Logs, the IAM role associated with the flow log must have permission to create log groups and log streams. If the IAM policy is missing logs:CreateLogGroup, CloudWatch Logs cannot create the destination log group, and no flow logs will appear. upvoted 2 times