Terraform resource for managing an AWS OpenSearchServerless VPC Endpoint.
resource "aws_opensearchserverless_vpc_endpoint" "example" {
name = "myendpoint"
subnet_ids = [aws_subnet.example.id]
vpc_id = aws_vpc.example.id
}
The following arguments are required:
name
- (Required) Name of the interface endpoint.subnet_ids
- (Required) One or more subnet IDs from which you'll access OpenSearch Serverless. Up to 6 subnets can be provided.vpc_id
- (Required) ID of the VPC from which you'll access OpenSearch Serverless.The following arguments are optional:
security_group_ids
- (Optional) One or more security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint. Up to 5 security groups can be provided.This resource exports the following attributes in addition to the arguments above:
id
- Unique identified of the Vpc Endpoint.create
- (Default 30m
)update
- (Default 30m
)delete
- (Default 30m
)In Terraform v1.5.0 and later, use an import
block to import OpenSearchServerless Vpc Endpointa using the id
. For example:
import {
to = aws_opensearchserverless_vpc_endpoint.example
id = "vpce-8012925589"
}
Using terraform import
, import OpenSearchServerless Vpc Endpointa using the id
. For example:
% terraform import aws_opensearchserverless_vpc_endpoint.example vpce-8012925589