aws::vpc-endpoint

Creates a vpc endpoint with the specified vpc and either route tables or subnets and security groups.

Example

aws::vpc-endpoint endpoint-example-gateway
    vpc: $(aws::vpc vpc-example-for-endpoint)
    service-name: 'com.amazonaws.us-east-1.s3'
    policy: 'policy.json'
    type: 'Gateway'
    route-tables: [
        $(aws::route-table route-table-example-for-endpoint-1),
        $(aws::route-table route-table-example-for-endpoint-2),
        $(aws::route-table route-table-example-for-endpoint-3)
     ]
end

aws::vpc-endpoint endpoint-example-interface
    vpc: $(aws::vpc vpc-example-for-endpoint)
    service-name: 'com.amazonaws.us-east-1.ec2'
    policy: 'policy.json'
    type: 'Interface'
    subnets: [
        $(aws::subnet subnet-public-us-east-1a-example-for-endpoint-1),
        $(aws::subnet subnet-public-us-east-1b-example-for-endpoint-1),
        $(aws::subnet subnet-public-us-east-1c-example-for-endpoint-1)
    ]
    security-groups: [
        $(aws::security-group security-group-example-for-endpoint-1),
        $(aws::security-group security-group-example-for-endpoint-2),
        $(aws::security-group security-group-example-for-endpoint-3)
    ]
end

Attributes

Attribute Description
service-name The name of the service that is going to associated with this endpoint. (Required)
vpc The VPC to create the endpoint in. See VPC Endpoints. (Required)
type The type of service being associated. Defaults to GATEWAY. Valid values are Interface or Gateway.
route-tables set The set of Route Tables being associated with the endpoint. (Required if type-interface set to true.)
subnets set The set of Subnets being associated with the endpoint. (Required if type-interface set to false.)
security-groups set The set of of Security Groups being associated with the endpoint. (Required if type-interface set to false.)
private-dns-enabled When set to true, the private DNS on the endpoint is enabled.
policy The content of the policy.

Outputs

Attribute Description
id The ID of the endpoint.
state The state of the Endpoint.
create-time The creation time of the Endpoint.
network-interfaces set A set of network interface attached to the endpoint.
dns-entries set A set of Dns Entry attached to the endpoint.
requester-managed When set to true, the requester is managed.