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