Skip to content

Files

Latest commit

024bf9a · Mar 25, 2024

History

History

Complete Opensearch Serverless

Configuration in this directory creates opensearch serverless collection with all supported features.

Usage

To run this example you need to execute:

$ terraform init
$ terraform plan
$ terraform apply

Note that this example may create resources which cost money. Run terraform destroy when you don't need these resources.

Requirements

Name Version
terraform >= 0.13.1
aws >= 5.31

Providers

Name Version
aws >= 5.31

Modules

Name Source Version
opensearch_serverless ../../ n/a
vpc terraform-aws-modules/vpc/aws n/a

Resources

Name Type
aws_caller_identity.current data source

Inputs

Name Description Type Default Required
name_prefix Name prefix to use in resources string "demo" no
vpc_azs Redshift AZs list(string)
[
"eu-west-1a",
"eu-west-1b",
"eu-west-1c"
]
no
vpc_cidr VPC CIDR block string "10.0.0.0/16" no
vpc_private_subnets VPC Private Subnets list(string)
[
"10.0.1.0/24",
"10.0.2.0/24",
"10.0.3.0/24"
]
no
vpc_public_subnets VPC Public Subnets list(string)
[
"10.0.101.0/24",
"10.0.102.0/24",
"10.0.103.0/24"
]
no

Outputs

Name Description
collection_arn Amazon Resource Name (ARN) of the collection.
collection_endpoint Collection-specific endpoint used to submit index, search, and data upload requests to an OpenSearch Serverless collection.
collection_id Unique identifier for the collection.
dashboard_endpoint Collection-specific endpoint used to access OpenSearch Dashboards.
data_access_policy_version Data Access policy version.
data_lifecycle_policy_version Data Lifecycle policy version.
encrypt_policy_version Encryption policy version.
network_policy_version Network policy version.
security_config_version Security Config version.
security_group_id Id of the security group.
security_group_name Name of the security group.