oci_redis_redis_cluster

This resource provides the Redis Cluster resource in Oracle Cloud Infrastructure Redis service.

Creates a new Oracle Cloud Infrastructure Cache cluster. A cluster is a memory-based storage solution. For more information, see OCI Cache.

Example Usage

resource "oci_redis_redis_cluster" "test_redis_cluster" {
	#Required
	compartment_id = var.compartment_id
	display_name = var.redis_cluster_display_name
	node_count = var.redis_cluster_node_count
	node_memory_in_gbs = var.redis_cluster_node_memory_in_gbs
	software_version = var.redis_cluster_software_version
	subnet_id = oci_core_subnet.test_subnet.id

	#Optional
	cluster_mode = var.redis_cluster_cluster_mode
	defined_tags = {"foo-namespace.bar-key"= "value"}
	freeform_tags = {"bar-key"= "value"}
	nsg_ids = var.redis_cluster_nsg_ids
	shard_count = var.redis_cluster_shard_count
}

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

Import

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

$ terraform import oci_redis_redis_cluster.test_redis_cluster "id"