Skip to content

Commit

Permalink
Update website/docs/cli/commands/terraform/usage.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
osterman and coderabbitai[bot] authored Nov 14, 2024
1 parent 4759e13 commit 345fb38
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions website/docs/cli/commands/terraform/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,12 @@ HCL-based domain-specific language and its interpreter. Atmos works with [OpenTo

- `atmos terraform clean` command deletes the `.terraform` folder, `.terraform.lock.hcl` lock file, and the previously generated `planfile`
and `varfile` for the specified component and stack. Use the `--skip-lock-file` flag to skip deleting the `.terraform.lock.hcl` file.
Use the `--everything` flag to delete all the Terraform state files and directories for all components and stacks.
Use the `--force` flag to force the deletion without confirmation.
Use the `--everything` flag to delete all the Terraform state files and directories (including `terraform.tfstate.d`) for all components and stacks.
Use the `--force` flag to bypass the safety confirmation prompt and force the deletion (use with caution).

:::warning
The `--everything` flag performs destructive operations that can lead to permanent state loss. Always ensure you have backups before proceeding.
:::

- `atmos terraform workspace` command first runs `terraform init -reconfigure`, then `terraform workspace select`, and if the workspace was not
created before, it then runs `terraform workspace new`
Expand Down

0 comments on commit 345fb38

Please sign in to comment.