states: Add roundtrip v3->v4 with builtin provider

This commit is contained in:
Alisdair McDiarmid 2020-08-14 15:40:48 -04:00
parent d53a4ac588
commit e02e53ed4d
2 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1,39 @@
{
"version": 3,
"terraform_version": "0.11.14",
"serial": 1,
"lineage": "b707851e-4209-9792-e752-bc0dd6c81fcf",
"modules": [
{
"path": [
"root"
],
"outputs": {},
"resources": {
"data.terraform_remote_state.test": {
"type": "terraform_remote_state",
"depends_on": [],
"primary": {
"id": "2020-08-14 19:13:36.875081 +0000 UTC",
"attributes": {
"backend": "remote",
"config.#": "1",
"config.345861710.organization": "hashicorp",
"config.345861710.workspaces.#": "1",
"config.345861710.workspaces.0.%": "1",
"config.345861710.workspaces.0.name": "test",
"environment": "default",
"id": "2020-08-14 19:13:36.875081 +0000 UTC",
"workspace": "default"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.terraform"
}
},
"depends_on": []
}
]
}

View File

@ -0,0 +1,31 @@
{
"version": 4,
"terraform_version": "0.12.28",
"serial": 1,
"lineage": "b707851e-4209-9792-e752-bc0dd6c81fcf",
"outputs": {},
"resources": [
{
"mode": "data",
"type": "terraform_remote_state",
"name": "test",
"provider": "provider.terraform",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"backend": "remote",
"config.#": "1",
"config.345861710.organization": "hashicorp",
"config.345861710.workspaces.#": "1",
"config.345861710.workspaces.0.%": "1",
"config.345861710.workspaces.0.name": "test",
"environment": "default",
"id": "2020-08-14 19:13:36.875081 +0000 UTC",
"workspace": "default"
}
}
]
}
]
}