mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-16 11:42:58 -06:00
9f824c53a5
When init attempts to install a legacy provider required by state and fails, but another provider with the same type is successfully installed, this almost definitely means that the user is migrating an in-house provider. The solution here is to use the `terraform state replace-provider` subcommand. This commit makes that next step clearer, by detecting this specific case, and displaying a list of commands to fix the existing state provider references.
13 lines
161 B
HCL
13 lines
161 B
HCL
terraform {
|
|
required_providers {
|
|
alpha = {
|
|
source = "acme/alpha"
|
|
version = "1.2.3"
|
|
}
|
|
}
|
|
}
|
|
|
|
resource "alpha_resource" "a" {
|
|
index = 1
|
|
}
|