oci_kms_vault

This resource provides the Vault resource in Oracle Cloud Infrastructure Kms service.

Creates a new vault. The type of vault you create determines key placement, pricing, and available options. Options include storage isolation, a dedicated service endpoint instead of a shared service endpoint for API calls, and either a dedicated hardware security module (HSM) or a multitenant HSM.

As a provisioning operation, this call is subject to a Key Management limit that applies to the total number of requests across all provisioning write operations. Key Management might throttle this call to reject an otherwise valid request when the total rate of provisioning write operations exceeds 10 requests per second for a given tenancy.

Example Usage

resource "oci_kms_vault" "test_vault" {
	#Required
	compartment_id = var.compartment_id
	display_name = var.vault_display_name
	vault_type = var.vault_vault_type

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	external_key_manager_metadata {
		#Required
		external_vault_endpoint_url = var.vault_external_key_manager_metadata_external_vault_endpoint_url
		oauth_metadata {
			#Required
			client_app_id = oci_kms_client_app.test_client_app.id
			client_app_secret = var.vault_external_key_manager_metadata_oauth_metadata_client_app_secret
			idcs_account_name_url = var.vault_external_key_manager_metadata_oauth_metadata_idcs_account_name_url
		}
		private_endpoint_id = oci_dataflow_private_endpoint.test_private_endpoint.id
	}
	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 Vault * update - (Defaults to 20 minutes), when updating the Vault * delete - (Defaults to 20 minutes), when destroying the Vault

Import

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

$ terraform import oci_kms_vault.test_vault "id"