This template creates a gateway endpoint that connects the VPC defined by `myVPC` with Amazon S3 in the current Region. The endpoint policy allows only the `s3:GetObject` action on the specified bucket. Traffic to Amazon S3 from the subnets that are associated with the route table specified in `RouteTableIds` is automatically routed through the gateway endpoint. The template also creates a VPC, subnet, route table, and subnet route table association for the endpoint.

S3GatewayEndpoint
AWS::EC2::VPCEndpoint


RouteTableIds

myVPC
AWS::EC2::VPC


mySubnet
AWS::EC2::Subnet


myRouteTable
AWS::EC2::RouteTable


mySubnetRouteTableAssociation
AWS::EC2::SubnetRouteTableAssociation


CloudFormation Template

Share Template