oci_mysql_replica

This resource provides the Replica resource in Oracle Cloud Infrastructure MySQL Database service.

Creates a DB System read replica.

Example Usage

resource "oci_mysql_replica" "test_replica" {
	#Required
	db_system_id = oci_mysql_mysql_db_system.test_mysql_db_system.id

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.replica_description
	display_name = var.replica_display_name
	freeform_tags = {"bar-key"= "value"}
	is_delete_protected = var.replica_is_delete_protected
	replica_overrides {

		#Optional
		configuration_id = oci_mysql_mysql_configuration.test_mysql_configuration.id
		mysql_version = var.replica_replica_overrides_mysql_version
		shape_name = oci_mysql_shape.test_shape.name
	}
}

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

Import

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

$ terraform import oci_mysql_replica.test_replica "id"