Skip to main content
Five Steps for Cloud Compliance Readiness·A practical playbook for security teamsDownload
CIS Amazon Web Services Foundations v7.0.0 · 4.7

VPC flow logs should be enabled in every VPC

  • Level 2

This check looks at whether each VPC in the account has a flow log that records the IP traffic going to and from its network interfaces. The safe setting is an active flow log for every VPC, delivered to CloudWatch Logs, S3 or Data Firehose.

Why it matters

When something odd happens on the network, such as unexpected connections to an instance, you need a record of what traffic actually flowed. VPC Flow Logs capture information about IP traffic to and from network interfaces in your VPC, and AWS lists diagnosing overly restrictive security group rules and monitoring traffic that reaches an instance as typical uses.

Flow logs only cover the period after they are created, so enabling them after an incident leaves a gap. AWS also states that flow log data is collected outside the path of your traffic and does not affect throughput or latency. See Logging IP traffic using VPC Flow Logs.

A VPC without a flow log is therefore a blind spot: if an instance is probed or sends data somewhere unexpected, there is no network-level record to review afterwards, only whatever the application itself logged.

How to check it yourself

In the AWS console open VPC, select a VPC from Your VPCs and look at the Flow logs tab. Repeat for each Region you use.

With the AWS CLI (read-only calls):

aws ec2 describe-vpcs --region <region> --query "Vpcs[].VpcId" --output text
aws ec2 describe-flow-logs --region <region> --filter Name=resource-id,Values=<vpc id> --query "FlowLogs[].{id:FlowLogId,status:FlowLogStatus,dest:LogDestinationType}"

A VPC with an empty result has no flow log.

How to fix it

ConfigCobra reads your account through a read-only role and never creates resources. In the console, select the VPC, open the Flow logs tab, choose Create flow log, set the filter (for example All), pick a destination (CloudWatch Logs, S3 or Amazon Data Firehose), supply the required permissions or bucket, and save.

With the CLI, to an S3 bucket you own:

aws ec2 create-flow-logs --resource-type VPC --resource-ids <vpc id> --traffic-type ALL --log-destination-type s3 --log-destination arn:aws:s3:::<your bucket> --region <region>

Then run the describe command above to confirm the status is active.

What changes when you fix it

Applications and users see no change in traffic, because AWS states flow logs do not affect network throughput or latency. The visible effect is on cost and storage: AWS notes that data ingestion and archival charges for vended logs apply when you publish flow logs, so the owner of the account should agree the destination and how long to keep the data.

Security and operations staff gain a record they can query, for example with Amazon Athena, when investigating traffic.

Included in

BenchmarkCIS IDProfile
CIS Amazon Web Services Foundations v7.0.04.7Level 2

Check this on your AWS

ConfigCobra runs this check with every other control of the CIS Amazon Web Services Benchmarks, read-only.

Get in touch

Let's talk.

Whether you're evaluating ConfigCobra, running an audit, or managing a client fleet — we respond within one business day.

Free trial