oci_core_boot_volume

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

Creates a new boot volume in the specified compartment from an existing boot volume or a boot volume backup. For general information about boot volumes, see Boot Volumes. You may optionally specify a display name for the volume, which is simply a friendly name or description. It does not have to be unique, and you can change it. Avoid entering confidential information.

Example Usage

resource "oci_core_boot_volume" "test_boot_volume" {
	#Required
	compartment_id = var.compartment_id
	source_details {
		#Required
		type = var.boot_volume_source_details_type

		#Optional
		change_block_size_in_bytes = var.boot_volume_source_details_change_block_size_in_bytes
		first_backup_id = oci_database_backup.test_backup.id
		id = var.boot_volume_source_details_id
		second_backup_id = oci_database_backup.test_backup.id
	}

	#Optional
	autotune_policies {
		#Required
		autotune_type = var.boot_volume_autotune_policies_autotune_type

		#Optional
		max_vpus_per_gb = var.boot_volume_autotune_policies_max_vpus_per_gb
	}
	availability_domain = var.boot_volume_availability_domain
	backup_policy_id = data.oci_core_volume_backup_policies.test_volume_backup_policies.volume_backup_policies.0.id
	boot_volume_replicas {
		#Required
		availability_domain = var.boot_volume_boot_volume_replicas_availability_domain

		#Optional
		display_name = var.boot_volume_boot_volume_replicas_display_name
		xrr_kms_key_id = oci_kms_key.test_key.id
	}
	cluster_placement_group_id = oci_identity_group.test_group.id
	defined_tags = {"Operations.CostCenter"= "42"}
	display_name = var.boot_volume_display_name
	freeform_tags = {"Department"= "Finance"}
	is_auto_tune_enabled = var.boot_volume_is_auto_tune_enabled
	kms_key_id = oci_kms_key.test_key.id
	size_in_gbs = var.boot_volume_size_in_gbs
	vpus_per_gb = var.boot_volume_vpus_per_gb
	xrc_kms_key_id = oci_kms_key.test_key.id
  boot_volume_replicas_deletion = true

}

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

Import

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

$ terraform import oci_core_boot_volume.test_boot_volume "id"