mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
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.
26 lines
481 B
JSON
26 lines
481 B
JSON
{
|
|
"version": 4,
|
|
"terraform_version": "0.12.28",
|
|
"serial": 1,
|
|
"lineage": "481bf512-f245-4c60-42dc-7005f4fa9181",
|
|
"outputs": {},
|
|
"resources": [
|
|
{
|
|
"mode": "managed",
|
|
"type": "alpha_resource",
|
|
"name": "a",
|
|
"provider": "provider.alpha",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"id": "a",
|
|
"index": 1
|
|
},
|
|
"private": "bnVsbA=="
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|