This data source provides the list of Opensearch Versions in Oracle Cloud Infrastructure Opensearch service.
Lists the supported Opensearch versions
The below policies must be created in compartment before creating OpensearchCluster
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
data "oci_opensearch_opensearch_versions" "test_opensearch_versions" {
#Required
compartment_id = var.compartment_id
}
The following arguments are supported:
compartment_id
- (Required) The ID of the compartment in which to list resources.The following attributes are exported:
opensearch_versions_collection
- The list of opensearch_versions_collection.The following attributes are exported:
items
- A list of OpenSearch versions.
version
- The version of OpenSearch.