This template creates an interface endpoint for Amazon CloudWatch Logs in the current Region. Traffic to CloudWatch Logs from any subnet in the Availability Zones that contain `subnetA` and `subnetB` automatically traverses the interface endpoint. The template also creates a VPC, subnets, and a security group for the endpoint.

CloudFormation Template