oci_redis_oci_cache_backup

This resource provides the Oci Cache Backup resource in Oracle Cloud Infrastructure Redis service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/ocicache/latest/OciCacheBackup

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 Backup.

Example Usage

resource "oci_redis_oci_cache_backup" "test_oci_cache_backup" {
	#Required
	compartment_id = var.compartment_id
	display_name = var.oci_cache_backup_display_name
	source_cluster_id = oci_redis_redis_cluster.test_redis_cluster.id

	#Optional
	backup_source = var.oci_cache_backup_backup_source
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.oci_cache_backup_description
	freeform_tags = {"bar-key"= "value"}
	retention_period_in_days = var.oci_cache_backup_retention_period_in_days
}

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

Import

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

$ terraform import oci_redis_oci_cache_backup.test_oci_cache_backup "id"