Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport[v1.8]: #2224 (Updated migration guides) #2227

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions website/docs/intro/migration/terraform-1.7.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ The OpenTofu `removed` block works differently from the Terraform variant. Pleas

If you are using the `terraform test` feature, you will need to perform the following changes:

1. If you are `mock_provider`, restructure your tests to work without this feature (see [OpenTofu issue #1155](https://github.com/opentofu/opentofu/issues/1155)).
2. If you are using `override_resource`, `override_data`, or `override_module`, restructure your tests to work without these features (see [OpenTofu issue #1204](https://github.com/opentofu/opentofu/issues/1204)).
1. If you are using `override_resource` or `override_data` nested in a `mock_provider` restructure your tests to work without these features (see [OpenTofu issue #1204](https://github.com/opentofu/opentofu/issues/1204)).

## Step 6: Initialize OpenTofu

Expand Down
13 changes: 11 additions & 2 deletions website/docs/intro/migration/terraform-1.8.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@ Additionally, make sure you back up or version your code as the migration will r

For a successful migration, you will need to perform the following code changes

### Functions

The following functions are not supported in OpenTofu:

- `encode_tfvars`
- `decode_tfvars`
- `encode_expr`

If you rely on these functions, please refactor your code to work without them.

### S3 backend

If you are using the S3 backend, please change your code as follows:
Expand All @@ -83,8 +93,7 @@ The OpenTofu `removed` block works differently from the Terraform variant. Pleas

If you are using the `terraform test` feature, you will need to perform the following changes:

1. If you are using `mock_provider`, restructure your tests to work without this feature (see [OpenTofu issue #1155](https://github.com/opentofu/opentofu/issues/1155)).
2. If you are using `override_resource`, `override_data`, or `override_module`, restructure your tests to work without these features (see [OpenTofu issue #1204](https://github.com/opentofu/opentofu/issues/1204)).
1. If you are using `override_resource` or `override_data` nested in a `mock_provider` restructure your tests to work without these features (see [OpenTofu issue #1204](https://github.com/opentofu/opentofu/issues/1204)).

## Step 6: Initialize OpenTofu

Expand Down
Loading