oci_database_database_snapshot

This resource provides the Database Snapshot resource in Oracle Cloud Infrastructure Database service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/database/latest/DatabaseSnapshot

Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/database

Creates a Database Snapshot

Example Usage

resource "oci_database_database_snapshot" "test_database_snapshot" {
	#Required
	database_id = oci_database_database.test_database.id
	name = var.database_snapshot_name

	#Optional
	defined_tags = var.database_snapshot_defined_tags
	freeform_tags = {"Department"= "Finance"}
}

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

Import

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

$ terraform import oci_database_database_snapshot.test_database_snapshot "id"