oci_kms_generated_key

This resource provides the Generated Key resource in Oracle Cloud Infrastructure Kms service.

Generates a key that you can use to encrypt or decrypt data.

Example Usage

resource "oci_kms_generated_key" "test_generated_key" {
	#Required
	crypto_endpoint = var.generated_key_crypto_endpoint
	include_plaintext_key = var.generated_key_include_plaintext_key
	key_id = oci_kms_key.test_key.id
	key_shape {
		#Required
		algorithm = var.generated_key_key_shape_algorithm
		length = var.generated_key_key_shape_length

		#Optional
		curve_id = oci_kms_curve.test_curve.id
	}

	#Optional
	associated_data = var.generated_key_associated_data
	logging_context = var.generated_key_logging_context
}

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

Import

Import is not supported for this resource.