oci_devops_deploy_environment

This resource provides the Deploy Environment resource in Oracle Cloud Infrastructure Devops service.

Creates a new deployment environment.

Example Usage

resource "oci_devops_deploy_environment" "test_deploy_environment" {
	#Required
	deploy_environment_type = var.deploy_environment_deploy_environment_type
	project_id = oci_devops_project.test_project.id

	#Optional
	cluster_id = oci_containerengine_cluster.test_cluster.id
	compute_instance_group_selectors {

		#Optional
		items {
			#Required
			selector_type = var.deploy_environment_compute_instance_group_selectors_items_selector_type

			#Optional
			compute_instance_ids = var.deploy_environment_compute_instance_group_selectors_items_compute_instance_ids
			query = var.deploy_environment_compute_instance_group_selectors_items_query
			region = var.deploy_environment_compute_instance_group_selectors_items_region
		}
	}
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.deploy_environment_description
	display_name = var.deploy_environment_display_name
	freeform_tags = {"bar-key"= "value"}
	function_id = oci_functions_function.test_function.id
	network_channel {
		#Required
		network_channel_type = var.deploy_environment_network_channel_network_channel_type
		subnet_id = oci_core_subnet.test_subnet.id

		#Optional
		nsg_ids = var.deploy_environment_network_channel_nsg_ids
	}
}

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

Import

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

$ terraform import oci_devops_deploy_environment.test_deploy_environment "id"