mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 18:01:01 -06:00
47a16b0937
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.
89 lines
2.0 KiB
JSON
89 lines
2.0 KiB
JSON
{
|
|
"version": 4,
|
|
"terraform_version": "0.12.0",
|
|
"serial": 0,
|
|
"lineage": "f2968801-fa14-41ab-a044-224f3a4adf04",
|
|
"outputs": {
|
|
"numbers": {
|
|
"value": "0,1",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"resources": [
|
|
{
|
|
"mode": "managed",
|
|
"type": "null_resource",
|
|
"name": "bar",
|
|
"provider": "provider[\"registry.terraform.io/-/null\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes_flat": {
|
|
"id": "5388490630832483079",
|
|
"triggers.%": "1",
|
|
"triggers.whaaat": "0,1"
|
|
},
|
|
"depends_on": [
|
|
"null_resource.foo"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.modB",
|
|
"mode": "managed",
|
|
"type": "null_resource",
|
|
"name": "bar",
|
|
"each": "map",
|
|
"provider": "provider[\"registry.terraform.io/-/null\"]",
|
|
"instances": [
|
|
{
|
|
"index_key": "a",
|
|
"schema_version": 0,
|
|
"attributes_flat": {
|
|
"id": "8212585058302700791"
|
|
},
|
|
"dependencies": [
|
|
"module.modA.null_resource.resource"
|
|
]
|
|
},
|
|
{
|
|
"index_key": "b",
|
|
"schema_version": 0,
|
|
"attributes_flat": {
|
|
"id": "1523897709610803586"
|
|
},
|
|
"dependencies": [
|
|
"module.modA.null_resource.resource"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "module.modA",
|
|
"mode": "managed",
|
|
"type": "null_resource",
|
|
"name": "resource",
|
|
"provider": "provider[\"registry.terraform.io/-/null\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"id": "4639265839606265182",
|
|
"triggers": {
|
|
"input": "test"
|
|
}
|
|
},
|
|
"private": "bnVsbA==",
|
|
"dependencies": [
|
|
"null_resource.bar"
|
|
],
|
|
"depends_on": [
|
|
"var.input"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|