Skip to content

VpcEndpoint

Source: src/AWS/OpenSearchServerless/VpcEndpoint.ts

An Amazon OpenSearch Serverless-managed interface VPC endpoint. Creating one lets resources in a VPC reach a collection privately (without traversing the public internet), and lets a network SecurityPolicy restrict a collection’s access to only that endpoint. Creation is asynchronous — the provider polls (bounded) until the endpoint reaches ACTIVE.

import * as AWS from "alchemy/AWS";
const endpoint = yield* AWS.OpenSearchServerless.VpcEndpoint("Endpoint", {
endpointName: "my-endpoint",
vpcId: vpc.vpcId,
subnetIds: [subnet.subnetId],
securityGroupIds: [securityGroup.groupId],
});