oci_psql_backup

This resource provides the Backup resource in Oracle Cloud Infrastructure Psql service.

Creates a new backup.

Example Usage

resource "oci_psql_backup" "test_backup" {
	#Required
	compartment_id = var.compartment_id
	db_system_id = oci_psql_db_system.test_db_system.id
	display_name = var.backup_display_name

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.backup_description
	freeform_tags = {"bar-key"= "value"}
	retention_period = var.backup_retention_period
}

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

Import

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

$ terraform import oci_psql_backup.test_backup "id"