forked from hashicorp/terraform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request hashicorp#30173 from hashicorp/ds.mdx-migration-main
Migrate docs to MDX (main)
- Loading branch information
Showing
358 changed files
with
5,054 additions
and
5,868 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
page_title: Command Line Arguments | ||
description: Command Line Arguments | ||
--- | ||
|
||
# Command Line Arguments | ||
|
||
When your configuration includes a `cloud` block, commands that | ||
make local modifications to Terraform state and then push them back up to the remote workspace | ||
accept the following option to modify that behavior: | ||
|
||
- `-ignore-remote-version` - Override checking that the local and remote | ||
Terraform versions agree, making an operation proceed even when there is | ||
a mismatch. | ||
|
||
State-modification operations usually require using a local version of the | ||
Terraform CLI that is compatible with the Terraform version selected | ||
in the remote workspace settings. This prevents the | ||
local operation from creating a new state snapshot that the workspace's | ||
remote execution environment cannot decode. | ||
|
||
We recommend against using this option unless absolutely necessary. Overriding this check can result | ||
in a Terraform Cloud workspace that is no longer able to complete remote operations with the currently | ||
selected version of Terraform. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
page_title: Using Terraform Cloud - Terraform CLI | ||
--- | ||
|
||
# Using Terraform Cloud with Terraform CLI | ||
|
||
The Terraform CLI's integration with Terraform Cloud lets you to use Terraform Cloud and Terraform Enterprise on the command line. In the documentation Terraform Cloud instructions also apply to Terraform Enterprise, except where explicitly stated. | ||
|
||
Using Terraform Cloud through the command line is called the [CLI-driven run workflow](/cloud-docs/run/cli). When you use the CLI workflow, operations like `terraform plan` or `terraform apply` are remotely executed in Terraform Cloud's run environment by default, with log output streaming to the local terminal. This lets you use Terraform Cloud features within the familiar Terraform CLI workflow, including variables encrypted at rest in a Terraform Cloud workspace, cost estimates, and policy checking. | ||
|
||
> **Hands On:** Try the [Migrate State to Terraform Cloud](https://learn.hashicorp.com/tutorials/terraform/cloud-migrate) tutorial on HashiCorp Learn. | ||
Workspaces can also be configured for local execution, in which case only state is stored in | ||
Terraform Cloud. In this mode, Terraform Cloud behaves just like a standard state backend. | ||
|
||
-> **Note:** The CLI integration is available in Terraform 1.1.0 and later, and Terraform Enterprise 202201-1 and later. Previous versions can use the [`remote` backend](/language/settings/backends/remote). Refer to [Migrating from the remote | ||
backend](/cli/cloud/migrating) for details about switching to the CLI integration. | ||
|
||
## Documentation Summary | ||
|
||
- [Terraform Cloud Settings](/cli/cloud/settings) documents the `cloud` block that you must add to your configuration to enable Terraform Cloud support. | ||
- [Initializing and Migrating](/cli/cloud/migrating) describes | ||
how to start using Terraform Cloud with a working directory that already has state data. | ||
- [Command Line Arguments](/cli/cloud/command-line-arguments) lists the Terraform command flags that are specific to using Terraform with Terraform Cloud. | ||
|
||
Refer to the [CLI-driven Run Workflow](/cloud-docs/run/cli) for more details about how to use Terraform Cloud from the command line. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.