oci_core_volume_attachment

This resource provides the Volume Attachment resource in Oracle Cloud Infrastructure Core service.

Attaches the specified storage volume to the specified instance.

Example Usage

resource "oci_core_volume_attachment" "test_volume_attachment" {
	#Required
	attachment_type = var.volume_attachment_attachment_type
	instance_id = oci_core_instance.test_instance.id
	volume_id = oci_core_volume.test_volume.id

	#Optional
	device = var.volume_attachment_device
	display_name = var.volume_attachment_display_name
	encryption_in_transit_type = var.volume_attachment_encryption_in_transit_type
	is_agent_auto_iscsi_login_enabled = var.volume_attachment_is_agent_auto_iscsi_login_enabled
	is_pv_encryption_in_transit_enabled = var.volume_attachment_is_pv_encryption_in_transit_enabled
	is_read_only = var.volume_attachment_is_read_only
	is_shareable = var.volume_attachment_is_shareable
	use_chap = var.volume_attachment_use_chap
}

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

Import

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

$ terraform import oci_core_volume_attachment.test_volume_attachment "id"