The Instance Scheduler on AWS solution automates the starting and stopping of
Amazon Elastic Compute Cloud (Amazon EC2) and Amazon Relational Database Service (Amazon RDS) instances.
Based on this CloudFormation Template
Create CloudWatch rule for`CreateVpc` API call.
Navigate to CloudWatch.
Click Create rule.
Select Event Pattern.
Service Name: EC2
Event Type: AWS API Call via CloudTrail
Specific Operation: "CreateVpc"
Note that eventName sets CreateVpc in the preview
Click Add target.
Select Lambda functionEnableVpcFlowLogs.
Click Configure details.
------------------------------------------------
Create a VPC, and check the Flow Logs was enable.