oci_redis_redis_cluster

This resource provides the Redis Cluster resource in Oracle Cloud Infrastructure Redis service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/redis/latest/RedisCluster

Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/redis

Creates a new Oracle Cloud Infrastructure Cache cluster. A cluster is a memory-based storage solution. You can optionally initialize the cluster data by restoring from an Oracle Cloud Infrastructure Cache Backup (backupId) or by importing from Object Storage RDB file(s) (importFromObjectStorageDetails). 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
	backup_id = oci_database_backup.test_backup.id
	cluster_mode = var.redis_cluster_cluster_mode
	defined_tags = {"foo-namespace.bar-key"= "value"}
	freeform_tags = {"bar-key"= "value"}
	import_from_object_storage_details {
		#Required
		bucket = var.redis_cluster_import_from_object_storage_details_bucket
		namespace = var.redis_cluster_import_from_object_storage_details_namespace
		objects {
			#Required
			object = var.redis_cluster_import_from_object_storage_details_objects_object
		}
	}
	nsg_ids = var.redis_cluster_nsg_ids
	oci_cache_config_set_id = oci_redis_oci_cache_config_set.test_oci_cache_config_set.id
	security_attributes = var.redis_cluster_security_attributes
	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"