oci_database_database_snapshot_standby

This resource provides the Database Snapshot Standby resource in Oracle Cloud Infrastructure Database service.

Performs transition from standby database into a snapshot standby and vice versa. The transition performed based on the current role of the database, if the current role is standby then this operation will convert it to snapshot standby and if the current role is snapshot standby then this operation will convert it to standby.

This operation should be performed on respective standby/snapshot standby database.

Example Usage

resource "oci_database_database_snapshot_standby" "test_database_snapshot_standby" {
	#Required
	database_admin_password = var.database_snapshot_standby_database_admin_password
	database_id = oci_database_database.test_database.id
	standby_conversion_type = var.database_snapshot_standby_standby_conversion_type

	#Optional
	snapshot_duration_in_days = var.database_snapshot_standby_snapshot_duration_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 Database Snapshot Standby * update - (Defaults to 20 minutes), when updating the Database Snapshot Standby * delete - (Defaults to 20 minutes), when destroying the Database Snapshot Standby

Import

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

$ terraform import oci_database_database_snapshot_standby.test_database_snapshot_standby "id"