Data Source: oci_opensearch_opensearch_versions
This data source provides the list of Opensearch Versions in Oracle Cloud Infrastructure Opensearch service.
Lists the supported Opensearch versions
Prerequisites
The below policies must be created in compartment before creating OpensearchCluster
{Compartment-Name} - Name of your compartment
Allow service opensearch to manage vnics in compartment {Compartment-Name}
Allow service opensearch to use subnets in compartment {Compartment-Name}
Allow service opensearch to use network-security-groups in compartment {Compartment-Name}
Allow service opensearch to manage vcns in compartment {Compartment-Name}
For latest documentation on OpenSearch use please refer to https://docs.oracle.com/en-us/iaas/Content/search-opensearch/home.htm
Required permissions: https://docs.oracle.com/en-us/iaas/Content/search-opensearch/Concepts/ocisearchpermissions.htm
Example Usage
data "oci_opensearch_opensearch_versions" "test_opensearch_versions" {
#Required
compartment_id = var.compartment_id
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) The ID of the compartment in which to list resources.
Attributes Reference
The following attributes are exported:
opensearch_versions_collection
- The list of opensearch_versions_collection.
OpensearchVersion Reference
The following attributes are exported:
items
- A list of OpenSearch versions.version
- The version of OpenSearch.