oci_devops_deploy_artifact

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

Creates a new deployment artifact.

Example Usage

resource "oci_devops_deploy_artifact" "test_deploy_artifact" {
	#Required
	argument_substitution_mode = var.deploy_artifact_argument_substitution_mode
	deploy_artifact_source {
		#Required
		deploy_artifact_source_type = var.deploy_artifact_deploy_artifact_source_deploy_artifact_source_type

		#Optional
		base64encoded_content = var.deploy_artifact_deploy_artifact_source_base64encoded_content
		chart_url = var.deploy_artifact_deploy_artifact_source_chart_url
		deploy_artifact_path = var.deploy_artifact_deploy_artifact_source_deploy_artifact_path
		deploy_artifact_version = var.deploy_artifact_deploy_artifact_source_deploy_artifact_version
		helm_artifact_source_type = var.deploy_artifact_deploy_artifact_source_helm_artifact_source_type
		helm_verification_key_source {
			#Required
			verification_key_source_type = var.deploy_artifact_deploy_artifact_source_helm_verification_key_source_verification_key_source_type

			#Optional
			current_public_key = var.deploy_artifact_deploy_artifact_source_helm_verification_key_source_current_public_key
			previous_public_key = var.deploy_artifact_deploy_artifact_source_helm_verification_key_source_previous_public_key
			vault_secret_id = oci_vault_secret.test_secret.id
		}
		image_digest = var.deploy_artifact_deploy_artifact_source_image_digest
		image_uri = var.deploy_artifact_deploy_artifact_source_image_uri
		repository_id = oci_devops_repository.test_repository.id
	}
	deploy_artifact_type = var.deploy_artifact_deploy_artifact_type
	project_id = oci_devops_project.test_project.id

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.deploy_artifact_description
	display_name = var.deploy_artifact_display_name
	freeform_tags = {"bar-key"= "value"}
}

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

Import

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

$ terraform import oci_devops_deploy_artifact.test_deploy_artifact "id"