oci_database_maintenance_run

This resource provides the Maintenance Run resource in Oracle Cloud Infrastructure Database service.

Creates a maintenance run with one of the following: The latest available release update patch (RUP) for the Autonomous Container Database. The latest available RUP and DST time zone (TZ) file updates for the Autonomous Container Database. Creates a maintenance run to update the DST TZ file for the Autonomous Container Database.

Example Usage

resource "oci_database_maintenance_run" "test_maintenance_run" {
	#Required
	patch_type = var.maintenance_run_patch_type
	target_resource_id = oci_usage_proxy_resource.test_resource.id
	time_scheduled = var.maintenance_run_time_scheduled

	#Optional
	compartment_id = var.compartment_id
	is_dst_file_update_enabled = var.maintenance_run_is_dst_file_update_enabled
	patching_mode = var.maintenance_run_patching_mode
}

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

Import

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

$ terraform import oci_database_maintenance_run.test_maintenance_run "id"