oci_database_autonomous_container_database_add_standby

This resource provides the Autonomous Container Database Add Standby resource in Oracle Cloud Infrastructure Database service.

Create Standby Autonomous Container Database. For more information about changing Autonomous Container Databases Add Standby, see Create Standby Autonomous Container Database and Convert Snapshot Standby to Physical Standby.

Example Usage

resource "oci_database_autonomous_container_database_add_standby" "test_autonomous_container_database_add_standby" {
	#Required
	autonomous_container_database_id = oci_database_autonomous_container_database.test_autonomous_container_database.id

	#Optional
	fast_start_fail_over_lag_limit_in_seconds = var.autonomous_container_database_add_standby_fast_start_fail_over_lag_limit_in_seconds
	is_automatic_failover_enabled = var.autonomous_container_database_add_standby_is_automatic_failover_enabled
	peer_autonomous_container_database_backup_config {

		#Optional
		backup_destination_details {
			#Required
			type = var.autonomous_container_database_add_standby_peer_autonomous_container_database_backup_config_backup_destination_details_type

			#Optional
			dbrs_policy_id = oci_identity_policy.test_policy.id
			id = var.autonomous_container_database_add_standby_peer_autonomous_container_database_backup_config_backup_destination_details_id
			internet_proxy = var.autonomous_container_database_add_standby_peer_autonomous_container_database_backup_config_backup_destination_details_internet_proxy
			vpc_password = var.autonomous_container_database_add_standby_peer_autonomous_container_database_backup_config_backup_destination_details_vpc_password
			vpc_user = var.autonomous_container_database_add_standby_peer_autonomous_container_database_backup_config_backup_destination_details_vpc_user
		}
		recovery_window_in_days = var.autonomous_container_database_add_standby_peer_autonomous_container_database_backup_config_recovery_window_in_days
	}
	peer_autonomous_container_database_compartment_id = oci_identity_compartment.test_compartment.id
	peer_autonomous_container_database_display_name = var.autonomous_container_database_add_standby_peer_autonomous_container_database_display_name
	peer_autonomous_vm_cluster_id = oci_database_autonomous_vm_cluster.test_autonomous_vm_cluster.id
	peer_cloud_autonomous_vm_cluster_id = oci_database_cloud_autonomous_vm_cluster.test_cloud_autonomous_vm_cluster.id
	peer_db_unique_name = var.autonomous_container_database_add_standby_peer_db_unique_name
	protection_mode = var.autonomous_container_database_add_standby_protection_mode
	standby_maintenance_buffer_in_days = var.autonomous_container_database_add_standby_standby_maintenance_buffer_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 Autonomous Container Database Add Standby * update - (Defaults to 20 minutes), when updating the Autonomous Container Database Add Standby * delete - (Defaults to 20 minutes), when destroying the Autonomous Container Database Add Standby

Import

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

$ terraform import oci_database_autonomous_container_database_add_standby.test_autonomous_container_database_add_standby "id"