mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-03 03:00:16 -05:00
a large refactor to addrs.AbsProviderConfig, embedding the addrs.Provider instead of a Type string. I've added and updated tests, added some Legacy functions to support older state formats and shims, and added a normalization step when reading v4 (current) state files (not the added tests under states/statefile/roundtrip which work with both current and legacy-style AbsProviderConfig strings). The remaining 'fixme' and 'todo' comments are mostly going to be addressed in a subsequent PR and involve looking up a given local provider config's FQN. This is fine for now as we are only working with default assumption.
40 lines
810 B
JSON
40 lines
810 B
JSON
{
|
|
"version": 4,
|
|
"terraform_version": "0.12.0",
|
|
"serial": 7,
|
|
"lineage": "configuredUnchanged",
|
|
"outputs": {},
|
|
"resources": [
|
|
{
|
|
"mode": "managed",
|
|
"type": "test_instance",
|
|
"name": "test",
|
|
"provider": "provider[\"registry.terraform.io/-/test\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"ami": "foo",
|
|
"id": "placeholder"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "test_instance",
|
|
"name": "test-delete",
|
|
"provider": "provider[\"registry.terraform.io/-/test\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"ami": "foo",
|
|
"id": "placeholder"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|