Fix Terraform Version in 1.8.x Migration Guide (#1987)

Signed-off-by: Arunim Chaudhary <arunim.chaudhary@stackguardian.io>
This commit is contained in:
Arunim Chaudhary 2024-09-19 22:58:36 +05:30 committed by GitHub
parent 53130fa487
commit 8a9f87316e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,22 +7,22 @@ description: |-
# Migrating to OpenTofu from Terraform 1.8.x
When migrating from Terraform 1.8.x, please migrate to OpenTofu 1.7.1 first, then
When migrating from Terraform 1.8.x, please migrate to OpenTofu 1.8.2 first, then
[upgrade your OpenTofu installation](/docs/intro/upgrading/) to the latest version.
OpenTofu 1.7.1 is largely compatible with Terraform 1.8.x with a few minor changes needed. This migration guide will
OpenTofu 1.8.2 is largely compatible with Terraform 1.8.x with a few minor changes needed. This migration guide will
take you through the process of switching from Terraform to OpenTofu.
## Step 0: Prepare a disaster recovery plan
Although OpenTofu 1.7.1 is very similar to Terraform 1.8.2, make sure you have an up to date and *tested* disaster
Although OpenTofu 1.8.2 is very similar to Terraform 1.8.2, make sure you have an up to date and *tested* disaster
recovery plan.
## Step 1: Upgrading Terraform
This migration guide is only valid for Terraform 1.8.2. If you are on a Terraform version below 1.8.2, please upgrade
to at least Terraform version 1.8.2 before proceeding with the migration by following the
[Terraform upgrade guide](https://developer.hashicorp.com/terraform/language/v1.7.x/upgrade-guides). If you are on a
[Terraform upgrade guide](https://developer.hashicorp.com/terraform/language/v1.8.x/upgrade-guides). If you are on a
higher Terraform version, please wait until an appropriate migration guide becomes available.
## Step 2: Apply all changes with Terraform
@ -41,14 +41,14 @@ Terraform has compared your real infrastructure against your
configuration and found no differences, so no changes are needed.
```
## Step 3: Install OpenTofu 1.7.1
## Step 3: Install OpenTofu 1.8.2
As a first step, please [follow the installation instructions for the OpenTofu CLI tool](intro/install/index.mdx). Please test
if you can successfully execute the `tofu` command:
```
$ tofu --version
OpenTofu v1.7.1
OpenTofu v1.8.2
on linux_amd64
```