oci_recovery_protected_database

This resource provides the Protected Database resource in Oracle Cloud Infrastructure Recovery service.

Creates a new Protected Database.

Example Usage

resource "oci_recovery_protected_database" "test_protected_database" {
	#Required
	compartment_id = var.compartment_id
	db_unique_name = var.protected_database_db_unique_name
	display_name = var.protected_database_display_name
	password = var.protected_database_password
	protection_policy_id = oci_recovery_protection_policy.test_protection_policy.id
	recovery_service_subnets {
		#Required
		recovery_service_subnet_id = oci_recovery_recovery_service_subnet.test_recovery_service_subnet.id
	}

	#Optional
	database_id = oci_database_database.test_database.id
	database_size = var.protected_database_database_size
	defined_tags = {"foo-namespace.bar-key"= "value"}
	deletion_schedule = "DELETE_AFTER_72_HOURS"
	freeform_tags = {"bar-key"= "value"}
	is_redo_logs_shipped = var.protected_database_is_redo_logs_shipped
	subscription_id = oci_onesubscription_subscription.test_subscription.id
}

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

Import

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

$ terraform import oci_recovery_protected_database.test_protected_database "id"