oci_devops_deploy_pipeline
This resource provides the Deploy Pipeline resource in Oracle Cloud Infrastructure Devops service.
Creates a new deployment pipeline.
Example Usage
resource "oci_devops_deploy_pipeline" "test_deploy_pipeline" {
#Required
project_id = oci_devops_project.test_project.id
#Optional
defined_tags = {"foo-namespace.bar-key"= "value"}
deploy_pipeline_parameters {
#Required
items {
#Required
name = var.deploy_pipeline_deploy_pipeline_parameters_items_name
#Optional
default_value = var.deploy_pipeline_deploy_pipeline_parameters_items_default_value
description = var.deploy_pipeline_deploy_pipeline_parameters_items_description
}
}
description = var.deploy_pipeline_description
display_name = var.deploy_pipeline_display_name
freeform_tags = {"bar-key"= "value"}
}
Argument Reference
The following arguments are supported:
defined_tags
- (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:{"foo-namespace.bar-key": "value"}
deploy_pipeline_parameters
- (Optional) (Updatable) Specifies list of parameters present in the deployment pipeline. In case of Update operation, replaces existing parameters list. Merging with existing parameters is not supported.items
- (Required) (Updatable) List of parameters defined for a deployment pipeline.default_value
- (Optional) (Updatable) Default value of the parameter.description
- (Optional) (Updatable) Description of the parameter.name
- (Required) (Updatable) Name of the parameter (case-sensitive). Parameter name must be ^[a-zA-Z][a-zA-Z_0-9]*$.
description
- (Optional) (Updatable) Optional description about the deployment pipeline.display_name
- (Optional) (Updatable) Deployment pipeline display name. Avoid entering confidential information.freeform_tags
- (Optional) (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example:{"bar-key": "value"}
project_id
- (Required) The OCID of a project.
** 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:
compartment_id
- The OCID of the compartment where the pipeline is created.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:{"foo-namespace.bar-key": "value"}
deploy_pipeline_artifacts
- List of all artifacts used in the pipeline.items
- List of all artifacts used in the pipeline.deploy_artifact_id
- The OCID of an artifactdeploy_pipeline_stages
- List of stages.items
- List of stages.deploy_stage_id
- The OCID of a stagedisplay_name
- Display name of the stage. Avoid entering confidential information.
display_name
- Display name of the artifact. Avoid entering confidential information.
deploy_pipeline_environments
- List of all environments used in the pipeline.items
- List of all environments used in the pipeline.deploy_environment_id
- The OCID of an Environmentdeploy_pipeline_stages
- List of stages.items
- List of stages.deploy_stage_id
- The OCID of a stagedisplay_name
- Display name of the stage. Avoid entering confidential information.
display_name
- Display name of the environment. Avoid entering confidential information.
deploy_pipeline_parameters
- Specifies list of parameters present in the deployment pipeline. In case of Update operation, replaces existing parameters list. Merging with existing parameters is not supported.items
- List of parameters defined for a deployment pipeline.default_value
- Default value of the parameter.description
- Description of the parameter.name
- Name of the parameter (case-sensitive). Parameter name must be ^[a-zA-Z][a-zA-Z_0-9]*$.
description
- Optional description about the deployment pipeline.display_name
- Deployment pipeline display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.freeform_tags
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example:{"bar-key": "value"}
id
- Unique identifier that is immutable on creation.lifecycle_details
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.project_id
- The OCID of a project.state
- The current state of the deployment pipeline.system_tags
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:{"orcl-cloud.free-tier-retained": "true"}
time_created
- Time the deployment pipeline was created. Format defined by RFC3339.time_updated
- Time the deployment pipeline was updated. Format defined by RFC3339.
Timeouts
The timeouts
block allows you to specify timeouts for certain operations:
* create
- (Defaults to 20 minutes), when creating the Deploy Pipeline
* update
- (Defaults to 20 minutes), when updating the Deploy Pipeline
* delete
- (Defaults to 20 minutes), when destroying the Deploy Pipeline
Import
DeployPipelines can be imported using the id
, e.g.
$ terraform import oci_devops_deploy_pipeline.test_deploy_pipeline "id"