oci_database_key_store

This resource provides the Key Store resource in Oracle Cloud Infrastructure Database service.

Creates a Key Store.

Example Usage

resource "oci_database_key_store" "test_key_store" {
	#Required
	compartment_id = var.compartment_id
	display_name = var.key_store_display_name
	type_details {
		#Required
		admin_username = var.key_store_type_details_admin_username
		connection_ips = var.key_store_type_details_connection_ips
		secret_id = oci_vault_secret.test_secret.id
		type = var.key_store_type_details_type
		vault_id = oci_kms_vault.test_vault.id
	}

	#Optional
	defined_tags = var.key_store_defined_tags
	freeform_tags = {"Department"= "Finance"}
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

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 Key Store * update - (Defaults to 20 minutes), when updating the Key Store * delete - (Defaults to 20 minutes), when destroying the Key Store

Import

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

$ terraform import oci_database_key_store.test_key_store "id"