github.com/hashicorp/terraform-plugin-sdk@v1.17.2/internal/states/statefile/testdata/roundtrip/v3-grabbag.in.tfstate (about) 1 { 2 "version": 3, 3 "terraform_version": "0.11.1", 4 "serial": 8, 5 "lineage": "0f5b2ff9-6ff5-8e9e-1f81-aa3ce9a483eb", 6 "modules": [ 7 { 8 "path": [ 9 "root" 10 ], 11 "outputs": { 12 "results": { 13 "sensitive": false, 14 "type": "map", 15 "value": { 16 "aws_region": "us-west-2", 17 "list": "[{\"triggers\":{\"index\":\"0\"}},{\"triggers\":{\"index\":\"1\"}}]", 18 "list_item_0": "{\"triggers\":{\"index\":\"0\"}}", 19 "list_item_1": "{\"triggers\":{\"index\":\"1\"}}", 20 "list_triggers": "[{\"index\":\"0\"},{\"index\":\"1\"}]", 21 "list_triggers_item": "{\"index\":\"0\"}", 22 "module_object": "{\"test\":\"hello us-west-2\",\"test2\":\"hello world 2\"}", 23 "module_output": "hello us-west-2", 24 "single": "{\"triggers\":{\"baz\":\"BAR\",\"cwd_path\":\"/home/mart/Devel/terraform/tmp/hcl2-simple\",\"foo\":\"bar\",\"format\":\"Hello 12\",\"json\":\"{\\\"foo\\\":\\\"bar\\\",\\\"wonk\\\":[]}\",\"module_path\":\"/home/mart/Devel/terraform/tmp/hcl2-simple\",\"root_path\":\"/home/mart/Devel/terraform/tmp/hcl2-simple\",\"woot\":\"us-west-2\",\"workspace\":\"default\"}}" 25 } 26 } 27 }, 28 "resources": { 29 "null_resource.bar.0": { 30 "type": "null_resource", 31 "depends_on": [ 32 "null_resource.baz" 33 ], 34 "primary": { 35 "id": "604776346677326098", 36 "attributes": { 37 "id": "604776346677326098", 38 "triggers.%": "1", 39 "triggers.index": "0" 40 }, 41 "meta": { 42 "schema_version": "1" 43 }, 44 "tainted": false 45 }, 46 "deposed": [], 47 "provider": "provider.null" 48 }, 49 "null_resource.bar.1": { 50 "type": "null_resource", 51 "depends_on": [ 52 "null_resource.baz" 53 ], 54 "primary": { 55 "id": "4776432143683449212", 56 "attributes": { 57 "id": "4776432143683449212", 58 "triggers.%": "1", 59 "triggers.index": "1" 60 }, 61 "meta": {}, 62 "tainted": false 63 }, 64 "deposed": [], 65 "provider": "provider.null" 66 }, 67 "null_resource.baz": { 68 "type": "null_resource", 69 "depends_on": [], 70 "primary": { 71 "id": "1361331090091665738", 72 "attributes": { 73 "id": "1361331090091665738", 74 "triggers.%": "9", 75 "triggers.baz": "BAR", 76 "triggers.cwd_path": "/home/mart/Devel/terraform/tmp/hcl2-simple", 77 "triggers.foo": "bar", 78 "triggers.format": "Hello 12", 79 "triggers.json": "{\"foo\":\"bar\",\"wonk\":[]}", 80 "triggers.module_path": "/home/mart/Devel/terraform/tmp/hcl2-simple", 81 "triggers.root_path": "/home/mart/Devel/terraform/tmp/hcl2-simple", 82 "triggers.woot": "us-west-2", 83 "triggers.workspace": "default" 84 }, 85 "meta": { 86 "foo": "bar" 87 }, 88 "tainted": false 89 }, 90 "deposed": [], 91 "provider": "provider.null" 92 } 93 }, 94 "depends_on": [] 95 }, 96 { 97 "path": [ 98 "root", 99 "child" 100 ], 101 "outputs": { 102 "test": { 103 "sensitive": false, 104 "type": "string", 105 "value": "hello us-west-2" 106 }, 107 "test2": { 108 "sensitive": false, 109 "type": "string", 110 "value": "hello world 2" 111 } 112 }, 113 "resources": { 114 "null_resource.foo": { 115 "type": "null_resource", 116 "depends_on": [], 117 "primary": { 118 "id": "1361", 119 "attributes": { 120 "id": "1361", 121 "triggers.%": "0" 122 }, 123 "meta": {}, 124 "tainted": false 125 }, 126 "deposed": [], 127 "provider": "provider.null" 128 } 129 }, 130 "depends_on": [] 131 } 132 ] 133 }