AWS::EC2::VPCEndpointService - AWS CloudFormation


Creates a VPC endpoint service configuration to which service consumers (AWS accounts, IAM users, and IAM roles) can connect.

To create an endpoint service configuration, you must first create one of the following for your service:

For more information, see VPC Endpoint Services in the Amazon Virtual Private Cloud User Guide.


To declare this entity in your AWS CloudFormation template, use the following syntax:


{ "Type" : "AWS::EC2::VPCEndpointService", "Properties" : { "AcceptanceRequired" : Boolean, "GatewayLoadBalancerArns" : [ String, ... ], "NetworkLoadBalancerArns" : [ String, ... ], "PayerResponsibility" : String } }


Type: AWS::EC2::VPCEndpointService Properties: AcceptanceRequired: Boolean GatewayLoadBalancerArns: - String NetworkLoadBalancerArns: - String PayerResponsibility: String



Indicates whether requests from service consumers to create an endpoint to your service must be accepted.

Required: No

Type: Boolean

Update requires: No interruption


The Amazon Resource Names (ARNs) of one or more Gateway Load Balancers.

Required: No

Type: List of String

Update requires: No interruption


The Amazon Resource Names (ARNs) of one or more Network Load Balancers for your service.

Required: No

Type: List of String

Update requires: No interruption


The entity that is responsible for the endpoint costs. The default is the endpoint owner. If you set the payer responsibility to the service owner, you cannot set it back to the endpoint owner.

Required: No

Type: String

Allowed values: ServiceOwner

Update requires: No interruption

Return values


When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the ID of the VPC endpoint service configuration.

For more information about using the Ref function, see Ref.

See also