Resource: aws_opensearchserverless_vpc_endpoint

Terraform resource for managing an AWS OpenSearchServerless VPC Endpoint.

Example Usage

Basic Usage

resource "aws_opensearchserverless_vpc_endpoint" "example" {
  name       = "myendpoint"
  subnet_ids = [aws_subnet.example.id]
  vpc_id     = aws_vpc.example.id
}

Argument Reference

The following arguments are required:

The following arguments are optional:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

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