oci_datacc_vm_instance

This resource provides the Vm Instance 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 an VM instance on Database Infrastructure using the specified details.

Example Usage

resource "oci_datacc_vm_instance" "test_vm_instance" {
	#Required
	compartment_id = var.compartment_id
	cpus_enabled = var.vm_instance_cpus_enabled
	infrastructure_id = oci_datacc_infrastructure.test_infrastructure.id
	ssh_public_keys = var.vm_instance_ssh_public_keys

	#Optional
	boot_storage_size_in_gbs = var.vm_instance_boot_storage_size_in_gbs
	data_storage_size_in_gb = var.vm_instance_data_storage_size_in_gb
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.vm_instance_description
	display_name = var.vm_instance_display_name
	dns_servers = var.vm_instance_dns_servers
	domain_name = oci_identity_domain.test_domain.name
	freeform_tags = {"bar-key"= "value"}
	gateway = var.vm_instance_gateway
	hostname = var.vm_instance_hostname
	image_id = oci_core_image.test_image.id
	ip_address = var.vm_instance_ip_address
	memory_size_in_gbs = var.vm_instance_memory_size_in_gbs
	metadata = var.vm_instance_metadata
	netmask = var.vm_instance_netmask
	ntp_servers = var.vm_instance_ntp_servers
	server_id = oci_datacc_server.test_server.id
	system_tags = var.vm_instance_system_tags
	time_zone = var.vm_instance_time_zone
	userdata = var.vm_instance_userdata
	vlan_id = oci_core_vlan.test_vlan.id
	vm_network_id = oci_datacc_vm_network.test_vm_network.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 Vm Instance * update - (Defaults to 20 minutes), when updating the Vm Instance * delete - (Defaults to 20 minutes), when destroying the Vm Instance

Import

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

$ terraform import oci_datacc_vm_instance.test_vm_instance "id"