oci_datacc_infrastructure

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

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

Create a Database Infrastructure using the specified details.

Example Usage

resource "oci_datacc_infrastructure" "test_infrastructure" {
	#Required
	cloud_control_plane_server1 = var.infrastructure_cloud_control_plane_server1
	cloud_control_plane_server2 = var.infrastructure_cloud_control_plane_server2
	compartment_id = var.compartment_id
	display_name = var.infrastructure_display_name
	dns_servers = var.infrastructure_dns_servers
	gateway = var.infrastructure_gateway
	netmask = var.infrastructure_netmask
	ntp_servers = var.infrastructure_ntp_servers
	shape = var.infrastructure_shape
	system_model = var.infrastructure_system_model

	#Optional
	acfs_file_system_storage_in_gbs = var.infrastructure_acfs_file_system_storage_in_gbs
	admin_networkcidr = var.infrastructure_admin_networkcidr
	backup_network_bonding_interface = var.infrastructure_backup_network_bonding_interface
	backup_network_bonding_mode = var.infrastructure_backup_network_bonding_mode
	client_network_bonding_interface = var.infrastructure_client_network_bonding_interface
	client_network_bonding_mode = var.infrastructure_client_network_bonding_mode
	contacts {
		#Required
		email = var.infrastructure_contacts_email
		is_primary = var.infrastructure_contacts_is_primary
		name = var.infrastructure_contacts_name

		#Optional
		is_contact_mos_validated = var.infrastructure_contacts_is_contact_mos_validated
		phone_number = var.infrastructure_contacts_phone_number
	}
	corporate_proxy = var.infrastructure_corporate_proxy
	cps_network_bonding_interface = var.infrastructure_cps_network_bonding_interface
	cps_network_bonding_mode = var.infrastructure_cps_network_bonding_mode
	data_disk_percentage = var.infrastructure_data_disk_percentage
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.infrastructure_description
	freeform_tags = {"bar-key"= "value"}
	maintenance_window {

		#Optional
		custom_action_timeout_in_mins = var.infrastructure_maintenance_window_custom_action_timeout_in_mins
		days_of_week = var.infrastructure_maintenance_window_days_of_week
		hours_of_day = var.infrastructure_maintenance_window_hours_of_day
		is_custom_action_timeout_enabled = var.infrastructure_maintenance_window_is_custom_action_timeout_enabled
		is_monthly_patching_enabled = var.infrastructure_maintenance_window_is_monthly_patching_enabled
		lead_time_in_weeks = var.infrastructure_maintenance_window_lead_time_in_weeks
		months = var.infrastructure_maintenance_window_months
		patching_mode = var.infrastructure_maintenance_window_patching_mode
		preference = var.infrastructure_maintenance_window_preference
		weeks_of_month = var.infrastructure_maintenance_window_weeks_of_month
	}
	vlan_id = oci_core_vlan.test_vlan.id
}

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

Import

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

$ terraform import oci_datacc_infrastructure.test_infrastructure "id"