oci_file_storage_replication

This resource provides the Replication resource in Oracle Cloud Infrastructure File Storage service.

Creates a new replication in the specified compartment. Replications are the primary resource that governs the policy of cross-region replication between source and target file systems. Replications are associated with a secondary resource called a ReplicationTarget located in another availability domain. The associated replication target resource is automatically created along with the replication resource. The replication retrieves the delta of data between two snapshots of a source file system and sends it to the associated ReplicationTarget, which retrieves the delta and applies it to the target file system. Only unexported file systems can be used as target file systems. For more information, see Using Replication.

For information about access control and compartments, see Overview of the IAM Service.

For information about availability domains, see Regions and Availability Domains. To get a list of availability domains, use the ListAvailabilityDomains operation in the Identity and Access Management Service API.

All Oracle Cloud Infrastructure Services resources, including replications, get an Oracle-assigned, unique ID called an Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID in the response. You can also retrieve a resource’s OCID by using a List API operation on that resource type, or by viewing the resource in the Console.

Example Usage

resource "oci_file_storage_replication" "test_replication" {
	#Required
	compartment_id = var.compartment_id
	source_id = oci_file_storage_file_system.test_source.id
	target_id = oci_file_storage_file_system.test_target.id

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	display_name = var.replication_display_name
	freeform_tags = {"Department"= "Finance"}
	locks {
		#Required
		type = var.replication_locks_type

		#Optional
		message = var.replication_locks_message
		related_resource_id = oci_cloud_guard_resource.test_resource.id
		time_created = var.replication_locks_time_created
	}
	replication_interval = var.replication_replication_interval
}

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

Import

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

$ terraform import oci_file_storage_replication.test_replication "id"