oci_batch_batch_task_environment

This resource provides the Batch Task Environment resource in Oracle Cloud Infrastructure Batch 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/batch

Creates a batch task environment.

Example Usage

resource "oci_batch_batch_task_environment" "test_batch_task_environment" {
	#Required
	compartment_id = var.compartment_id
	image_url = var.batch_task_environment_image_url

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.batch_task_environment_description
	display_name = var.batch_task_environment_display_name
	freeform_tags = {"Department"= "Finance"}
	security_context {

		#Optional
		fs_group = var.batch_task_environment_security_context_fs_group
		run_as_group = var.batch_task_environment_security_context_run_as_group
		run_as_user = var.batch_task_environment_security_context_run_as_user
	}
	volumes {
		#Required
		local_mount_directory_path = var.batch_task_environment_volumes_local_mount_directory_path
		mount_target_export_path = var.batch_task_environment_volumes_mount_target_export_path
		mount_target_fqdn = var.batch_task_environment_volumes_mount_target_fqdn
		name = var.batch_task_environment_volumes_name
		type = var.batch_task_environment_volumes_type
	}
	working_directory = var.batch_task_environment_working_directory
}

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

Import

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

$ terraform import oci_batch_batch_task_environment.test_batch_task_environment "id"