This template creates a Gateway Load Balancer endpoint that connects `myVPC` with the specified endpoint service in the current Region. The template also creates a VPC and a subnet for the endpoint.

CloudFormation Template