github.com/rstandt/terraform@v0.12.32-0.20230710220336-b1063613405c/command/testdata/show-json/modules/output.json (about) 1 { 2 "format_version": "0.1", 3 "planned_values": { 4 "outputs": { 5 "test": { 6 "sensitive": false, 7 "value": "baz" 8 } 9 }, 10 "root_module": { 11 "child_modules": [ 12 { 13 "resources": [ 14 { 15 "address": "module.module_test_bar.test_instance.test", 16 "mode": "managed", 17 "type": "test_instance", 18 "name": "test", 19 "provider_name": "test", 20 "schema_version": 0, 21 "values": { 22 "ami": "bar-var" 23 } 24 } 25 ], 26 "address": "module.module_test_bar" 27 }, 28 { 29 "resources": [ 30 { 31 "address": "module.module_test_foo.test_instance.test[0]", 32 "mode": "managed", 33 "type": "test_instance", 34 "name": "test", 35 "index": 0, 36 "provider_name": "test", 37 "schema_version": 0, 38 "values": { 39 "ami": "baz" 40 } 41 }, 42 { 43 "address": "module.module_test_foo.test_instance.test[1]", 44 "mode": "managed", 45 "type": "test_instance", 46 "name": "test", 47 "index": 1, 48 "provider_name": "test", 49 "schema_version": 0, 50 "values": { 51 "ami": "baz" 52 } 53 }, 54 { 55 "address": "module.module_test_foo.test_instance.test[2]", 56 "mode": "managed", 57 "type": "test_instance", 58 "name": "test", 59 "index": 2, 60 "provider_name": "test", 61 "schema_version": 0, 62 "values": { 63 "ami": "baz" 64 } 65 } 66 ], 67 "address": "module.module_test_foo" 68 } 69 ] 70 } 71 }, 72 "prior_state": { 73 "format_version": "0.1", 74 "values": { 75 "outputs": { 76 "test": { 77 "sensitive": false, 78 "value": "baz" 79 } 80 }, 81 "root_module": {} 82 } 83 }, 84 "resource_changes": [ 85 { 86 "address": "module.module_test_bar.test_instance.test", 87 "module_address": "module.module_test_bar", 88 "mode": "managed", 89 "type": "test_instance", 90 "name": "test", 91 "provider_name": "test", 92 "change": { 93 "actions": [ 94 "create" 95 ], 96 "before": null, 97 "after": { 98 "ami": "bar-var" 99 }, 100 "after_unknown": { 101 "id": true 102 } 103 } 104 }, 105 { 106 "address": "module.module_test_foo.test_instance.test[0]", 107 "module_address": "module.module_test_foo", 108 "mode": "managed", 109 "type": "test_instance", 110 "provider_name": "test", 111 "name": "test", 112 "index": 0, 113 "change": { 114 "actions": [ 115 "create" 116 ], 117 "before": null, 118 "after": { 119 "ami": "baz" 120 }, 121 "after_unknown": { 122 "id": true 123 } 124 } 125 }, 126 { 127 "address": "module.module_test_foo.test_instance.test[1]", 128 "module_address": "module.module_test_foo", 129 "mode": "managed", 130 "type": "test_instance", 131 "provider_name": "test", 132 "name": "test", 133 "index": 1, 134 "change": { 135 "actions": [ 136 "create" 137 ], 138 "before": null, 139 "after": { 140 "ami": "baz" 141 }, 142 "after_unknown": { 143 "id": true 144 } 145 } 146 }, 147 { 148 "address": "module.module_test_foo.test_instance.test[2]", 149 "module_address": "module.module_test_foo", 150 "mode": "managed", 151 "type": "test_instance", 152 "provider_name": "test", 153 "name": "test", 154 "index": 2, 155 "change": { 156 "actions": [ 157 "create" 158 ], 159 "before": null, 160 "after": { 161 "ami": "baz" 162 }, 163 "after_unknown": { 164 "id": true 165 } 166 } 167 } 168 ], 169 "output_changes": { 170 "test": { 171 "actions": [ 172 "create" 173 ], 174 "before": null, 175 "after": "baz", 176 "after_unknown": false 177 } 178 }, 179 "configuration": { 180 "root_module": { 181 "outputs": { 182 "test": { 183 "expression": { 184 "references": [ 185 "module.module_test_foo.test" 186 ] 187 }, 188 "depends_on": [ 189 "module.module_test_foo" 190 ] 191 } 192 }, 193 "module_calls": { 194 "module_test_bar": { 195 "source": "./bar", 196 "module": { 197 "outputs": { 198 "test": { 199 "expression": { 200 "references": [ 201 "var.test_var" 202 ] 203 } 204 } 205 }, 206 "resources": [ 207 { 208 "address": "test_instance.test", 209 "mode": "managed", 210 "type": "test_instance", 211 "name": "test", 212 "provider_config_key": "module_test_bar:test", 213 "expressions": { 214 "ami": { 215 "references": [ 216 "var.test_var" 217 ] 218 } 219 }, 220 "schema_version": 0 221 } 222 ], 223 "variables": { 224 "test_var": { 225 "default": "bar-var" 226 } 227 } 228 } 229 }, 230 "module_test_foo": { 231 "source": "./foo", 232 "expressions": { 233 "test_var": { 234 "constant_value": "baz" 235 } 236 }, 237 "module": { 238 "outputs": { 239 "test": { 240 "expression": { 241 "references": [ 242 "var.test_var" 243 ] 244 } 245 } 246 }, 247 "resources": [ 248 { 249 "address": "test_instance.test", 250 "mode": "managed", 251 "type": "test_instance", 252 "name": "test", 253 "provider_config_key": "module_test_foo:test", 254 "expressions": { 255 "ami": { 256 "references": [ 257 "var.test_var" 258 ] 259 } 260 }, 261 "schema_version": 0, 262 "count_expression": { 263 "constant_value": 3 264 } 265 } 266 ], 267 "variables": { 268 "test_var": { 269 "default": "foo-var" 270 } 271 } 272 } 273 } 274 } 275 }, 276 "provider_config": { 277 "module_test_foo:test": { 278 "module_address": "module_test_foo", 279 "name": "test" 280 } 281 } 282 } 283 }