oci_redis_oci_cache_user

This resource provides the Oci Cache User resource in Oracle Cloud Infrastructure Redis service.

Creates a new Oracle Cloud Infrastructure Cache user. Oracle Cloud Infrastructure Cache user is required to authenticate to Oracle Cloud Infrastructure Cache cluster.

Example Usage

resource "oci_redis_oci_cache_user" "test_oci_cache_user" {
	#Required
	acl_string = var.oci_cache_user_acl_string
	authentication_mode {
		#Required
		authentication_type = var.oci_cache_user_authentication_mode_authentication_type

		#Optional
		hashed_passwords = var.oci_cache_user_authentication_mode_hashed_passwords
	}
	compartment_id = var.compartment_id
	description = var.oci_cache_user_description
	name = var.oci_cache_user_name

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	freeform_tags = {"bar-key"= "value"}
	status = var.oci_cache_user_status
}

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

Import

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

$ terraform import oci_redis_oci_cache_user.test_oci_cache_user "id"