oci_database_cloud_exadata_infrastructure

This resource provides the Cloud Exadata Infrastructure resource in Oracle Cloud Infrastructure Database service.

Creates a cloud Exadata infrastructure resource. This resource is used to create either an Exadata Cloud Service instance or an Autonomous Database on dedicated Exadata infrastructure.

Example Usage

resource "oci_database_cloud_exadata_infrastructure" "test_cloud_exadata_infrastructure" {
	#Required
	availability_domain = var.cloud_exadata_infrastructure_availability_domain
	compartment_id = var.compartment_id
	display_name = var.cloud_exadata_infrastructure_display_name
	shape = var.cloud_exadata_infrastructure_shape

	#Optional
    cluster_placement_group_id = var.cloud_exadata_infrastructure_cluster_placement_group_id
	compute_count = var.cloud_exadata_infrastructure_compute_count
	customer_contacts {

		#Optional
		email = var.cloud_exadata_infrastructure_customer_contacts_email
	}
	defined_tags = var.cloud_exadata_infrastructure_defined_tags
	freeform_tags = {"Department"= "Finance"}
	maintenance_window {

		#Optional
		custom_action_timeout_in_mins = var.cloud_exadata_infrastructure_maintenance_window_custom_action_timeout_in_mins
		days_of_week {
			#Required
			name = var.cloud_exadata_infrastructure_maintenance_window_days_of_week_name
		}
		hours_of_day = var.cloud_exadata_infrastructure_maintenance_window_hours_of_day
		is_custom_action_timeout_enabled = var.cloud_exadata_infrastructure_maintenance_window_is_custom_action_timeout_enabled
		is_monthly_patching_enabled = var.cloud_exadata_infrastructure_maintenance_window_is_monthly_patching_enabled
		lead_time_in_weeks = var.cloud_exadata_infrastructure_maintenance_window_lead_time_in_weeks
		months {
			#Required
			name = var.cloud_exadata_infrastructure_maintenance_window_months_name
		}
		patching_mode = var.cloud_exadata_infrastructure_maintenance_window_patching_mode
		preference = var.cloud_exadata_infrastructure_maintenance_window_preference
		weeks_of_month = var.cloud_exadata_infrastructure_maintenance_window_weeks_of_month
	}
	storage_count = var.cloud_exadata_infrastructure_storage_count
}

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 12 hours), when creating the Cloud Exadata Infrastructure * update - (Defaults to 12 hours), when updating the Cloud Exadata Infrastructure * delete - (Defaults to 12 hours), when destroying the Cloud Exadata Infrastructure

Import

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

$ terraform import oci_database_cloud_exadata_infrastructure.test_cloud_exadata_infrastructure "id"