oci_nosql_configuration

This resource provides the Configuration in Oracle Cloud Infrastructure NoSQL Database service.

Updates the service-level configuration. The discriminator value UpdateConfigurationDetails.environment must match the service’s environment type.

A configuration serves as a centralized repository for global parameters that affect the NoSQL service. Currently, there is only one such parameter: a customer-provided key for encrypting NoSQL data at rest.

The Customer-Managed Encryption Keys (CMEK) feature is exclusively available in private NoSQL environments dedicated to a single tenancy, where the CMEK option has been enabled. Updating the configuration of the default, regional, multi-tenancy NoSQL service is not supported.

To specify the dedicated environment, set the environment variable CLIENT_HOST_OVERRIDES=oci_nosql.NosqlClient=\(ENDPOINT Where \)ENDPOINT is the endpoint of the dedicated NoSQL environment. For example: $ export CLIENT_HOST_OVERRIDES=oci_nosql.NosqlClient=https://acme-widgets.nosql.oci.oraclecloud.com

Example Usage

resource "oci_nosql_configuration" "test_configuration" {
	#Required
	compartment_id = var.compartment_id
	environment = "HOSTED"

	#Optional
	is_opc_dry_run = var.configuration_is_opc_dry_run
	kms_key {

		#Optional
		id = var.configuration_kms_key_id
		kms_vault_id = oci_kms_vault.test_vault.id
	}
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** The configuration cannot be deleted.

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Configuration * update - (Defaults to 20 minutes), when updating the Configuration * delete - (Defaults to 20 minutes), when destroying the Configuration

Import

Configurations can be imported using the id, e.g.

$ terraform import oci_nosql_configuration.test_configuration "configuration/compartmentId/{compartmentId}"