oci_devops_deployment

This resource provides the Deployment resource in Oracle Cloud Infrastructure Devops service.

Creates a new deployment.

Example Usage

resource "oci_devops_deployment" "test_deployment" {
	#Required
	deploy_pipeline_id = oci_devops_deploy_pipeline.test_deploy_pipeline.id
	deployment_type = var.deployment_deployment_type

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	deploy_artifact_override_arguments {

		#Optional
		items {

			#Optional
			deploy_artifact_id = oci_devops_deploy_artifact.test_deploy_artifact.id
			name = var.deployment_deploy_artifact_override_arguments_items_name
			value = var.deployment_deploy_artifact_override_arguments_items_value
		}
	}
	deploy_stage_id = oci_devops_deploy_stage.test_deploy_stage.id
	deploy_stage_override_arguments {

		#Optional
		items {

			#Optional
			deploy_stage_id = oci_devops_deploy_stage.test_deploy_stage.id
			name = var.deployment_deploy_stage_override_arguments_items_name
			value = var.deployment_deploy_stage_override_arguments_items_value
		}
	}
	deployment_arguments {

		#Optional
		items {

			#Optional
			name = var.deployment_deployment_arguments_items_name
			value = var.deployment_deployment_arguments_items_value
		}
	}
	display_name = var.deployment_display_name
	freeform_tags = {"bar-key"= "value"}
	previous_deployment_id = oci_devops_deployment.test_deployment.id
	trigger_new_devops_deployment = var.deployment_trigger_new_devops_deployment_bool
}

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. Additionally, while trigger_new_devops_deployment is set true each apply 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 Deployment * update - (Defaults to 20 minutes), when updating the Deployment * delete - (Defaults to 20 minutes), when destroying the Deployment

Import

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

$ terraform import oci_devops_deployment.test_deployment "id"