oci_desktops_desktop_pool

This resource provides the Desktop Pool resource in Oracle Cloud Infrastructure Desktops service.

Creates a desktop pool with the given configuration parameters.

Example Usage

resource "oci_desktops_desktop_pool" "test_desktop_pool" {
	#Required
	are_privileged_users = var.desktop_pool_are_privileged_users
	availability_domain = var.desktop_pool_availability_domain
	availability_policy {

		#Optional
		start_schedule {
			#Required
			cron_expression = "0 10 8 ? * 2"
			timezone = "America/Denver"
		}
		stop_schedule {
			#Required
			cron_expression = "0 20 18 ? * 6"
			timezone = "America/Denver"
		}
	}
	compartment_id = var.compartment_id
	contact_details = var.desktop_pool_contact_details
	device_policy {
		#Required
		audio_mode = var.desktop_pool_device_policy_audio_mode
		cdm_mode = var.desktop_pool_device_policy_cdm_mode
		clipboard_mode = var.desktop_pool_device_policy_clipboard_mode
		is_display_enabled = var.desktop_pool_device_policy_is_display_enabled
		is_keyboard_enabled = var.desktop_pool_device_policy_is_keyboard_enabled
		is_pointer_enabled = var.desktop_pool_device_policy_is_pointer_enabled
		is_printing_enabled = var.desktop_pool_device_policy_is_printing_enabled
	}
	display_name = var.desktop_pool_display_name
	image {
		#Required
		image_id = oci_core_image.test_image.id
		image_name = var.desktop_pool_image_image_name

		#Optional
		operating_system = var.desktop_pool_image_operating_system
	}
	is_storage_enabled = var.desktop_pool_is_storage_enabled
	maximum_size = var.desktop_pool_maximum_size
	network_configuration {
		#Required
		subnet_id = oci_core_subnet.test_subnet.id
		vcn_id = oci_core_vcn.test_vcn.id
	}
	shape_name = "VM.Standard.E4.Flex"
	standby_size = var.desktop_pool_standby_size
	storage_backup_policy_id = "ocid1.volumebackuppolicy.oc1.xxxxyyyyyzzzz"
	storage_size_in_gbs = var.desktop_pool_storage_size_in_gbs

	#Optional
	are_volumes_preserved = var.desktop_pool_are_volumes_preserved
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.desktop_pool_description
	freeform_tags = {"Department"= "Finance"}
	nsg_ids = var.desktop_pool_nsg_ids
	shape_config {

		#Optional
		baseline_ocpu_utilization = var.desktop_pool_shape_config_baseline_ocpu_utilization
		memory_in_gbs = var.desktop_pool_shape_config_memory_in_gbs
		ocpus = var.desktop_pool_shape_config_ocpus
	}
	private_access_details {
      #Required
      subnet_id = oci_core_subnet.test_subnet.id

      #Optional
      nsg_ids    = var.desktop_pool_private_access_details_nsg_ids
      private_ip = var.desktop_pool_private_access_details_private_ip
    }
	session_lifecycle_actions {

		#Optional
		disconnect {
			#Required
			action = "STOP"

			#Optional
			grace_period_in_minutes = var.desktop_pool_session_lifecycle_actions_disconnect_grace_period_in_minutes
		}
		inactivity {
			#Required
			action = "DISCONNECT"

			#Optional
			grace_period_in_minutes = var.desktop_pool_session_lifecycle_actions_inactivity_grace_period_in_minutes
		}
	}
	time_start_scheduled = var.desktop_pool_time_start_scheduled
	time_stop_scheduled = var.desktop_pool_time_stop_scheduled
	use_dedicated_vm_host = var.desktop_pool_use_dedicated_vm_host
}

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

Import

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

$ terraform import oci_desktops_desktop_pool.test_desktop_pool "id"