A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.hashicorp.com/terraform/cloud-docs/run/states below:

Run states and stages in HCP Terraform | Terraform

Each plan and apply run passes through several stages of action: pending, plan, cost estimation, policy check, apply, and completion. HCP Terraform shows a run's progress through each stage as a run state.

In the list of workspaces on HCP Terraform's main page, each workspace shows the state of the run it's currently processing. If no run is in progress, HCP Terraform displays the state of the most recently completed run.

States in this stage:

Leaving this stage:

HCP Terraform may need to fetch the configuration from VCS prior to starting the plan. HCP Terraform automatically archives configuration versions created through VCS when all runs are complete and then re-fetches the files for subsequent runs.

States in this stage:

Leaving this stage:

The pre-plan phase only occurs if there are enabled run tasks in the workspace that are configured to begin before Terraform creates the plan. HCP Terraform sends information about the run to the configured external system and waits for a passed or failed response to determine whether the run can continue. The information sent to the external system includes the configuration version of the run.

All runs can enter this phase, including speculative plans.

States in this stage:

Leaving this stage:

A run goes through different steps during the plan stage depending on whether or not HCP Terraform needs to fetch the configuration from VCS. HCP Terraform automatically archives configuration versions created through VCS when all runs are complete and then re-fetches the files for subsequent runs.

States in this stage:

Leaving this stage:

Note, if you want to directly integrate third-party tools and services between your plan and apply stages, see Run Tasks.

The Post-Plan Stage

The post-plan phase only occurs if you configure run tasks on a workspace to begin after Terraform successfully completes a plan operation. All runs can enter this phase, including speculative plans. During this phase, HCP Terraform sends information about the run to the configured external system and waits for a passed or failed response to determine whether the run can continue.

Note: The information sent to the configured external system includes the JSON output of the Terraform plan.

States in this stage:

Leaving this stage:

This stage only occurs if you enabled Open Policy Agent (OPA) policies and runs after a successful terraform plan and before Cost Estimation. In this stage, HCP Terraform checks whether the plan adheres to the policies in the OPA policy sets for the workspace.

States in this stage:

Leaving this stage:

If any mandatory policies failed, the run pauses in the Policy Override state. The run completes one of the following workflows:

Once the run reaches the Policy Checked state, the run completes one of the following workflows:

This stage only occurs if cost estimation is enabled. After a successful terraform plan, HCP Terraform uses plan data to estimate costs for each resource found in the plan.

States in this stage:

Leaving this stage:

This stage only occurs if Sentinel policies are enabled. After a successful terraform plan, HCP Terraform checks whether the plan obeys policy to determine whether it can be applied.

States in this stage:

Leaving this stage:

The pre-apply phase only occurs if the workspace has run tasks configured to begin before Terraform creates the apply. HCP Terraform sends information about the run to the configured external system and waits for a passed or failed response to determine whether the run can continue. The information sent to the external system includes the configuration version of the run.

Only confirmed runs can enter this phase.

States in this stage:

Leaving this stage:

States in this stage:

Leaving this stage:

After applying, the run proceeds automatically to completion.

The Post-Apply Stage

The post-apply phase only occurs if you configure run tasks on a workspace to begin after Terraform successfully completes an apply operation. During this phase, HCP Terraform sends information about the run to the configured external system and waits for a passed or failed response. However, unlike other stages in the run task process, a failed outcome does not halt the run since HCP Terraform has already provisioned the infrastructure.

States in this stage:

Leaving this stage:

A run is complete if it finishes applying, if any part of the run fails, if there is nothing to do, or if a user chooses not to continue. Once a run completes, the next run in the queue can enter the plan stage.

States in this stage:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4