github.com/graywolf-at-work-2/terraform-vendor@v1.4.5/internal/command/testdata/show-json/provider-aliasing/output.json (about) 1 { 2 "format_version": "1.0", 3 "terraform_version": "1.1.0-dev", 4 "planned_values": { 5 "root_module": { 6 "resources": [ 7 { 8 "address": "test_instance.test", 9 "mode": "managed", 10 "type": "test_instance", 11 "name": "test", 12 "provider_name": "registry.terraform.io/hashicorp/test", 13 "schema_version": 0, 14 "values": { 15 "ami": "foo" 16 }, 17 "sensitive_values": {} 18 }, 19 { 20 "address": "test_instance.test_backup", 21 "mode": "managed", 22 "type": "test_instance", 23 "name": "test_backup", 24 "provider_name": "registry.terraform.io/hashicorp/test", 25 "schema_version": 0, 26 "values": { 27 "ami": "foo-backup" 28 }, 29 "sensitive_values": {} 30 } 31 ], 32 "child_modules": [ 33 { 34 "resources": [ 35 { 36 "address": "module.child.test_instance.test_primary", 37 "mode": "managed", 38 "type": "test_instance", 39 "name": "test_primary", 40 "provider_name": "registry.terraform.io/hashicorp/test", 41 "schema_version": 0, 42 "values": { 43 "ami": "primary" 44 }, 45 "sensitive_values": {} 46 }, 47 { 48 "address": "module.child.test_instance.test_secondary", 49 "mode": "managed", 50 "type": "test_instance", 51 "name": "test_secondary", 52 "provider_name": "registry.terraform.io/hashicorp/test", 53 "schema_version": 0, 54 "values": { 55 "ami": "secondary" 56 }, 57 "sensitive_values": {} 58 } 59 ], 60 "address": "module.child", 61 "child_modules": [ 62 { 63 "resources": [ 64 { 65 "address": "module.child.module.grandchild.test_instance.test_alternate", 66 "mode": "managed", 67 "type": "test_instance", 68 "name": "test_alternate", 69 "provider_name": "registry.terraform.io/hashicorp/test", 70 "schema_version": 0, 71 "values": { 72 "ami": "secondary" 73 }, 74 "sensitive_values": {} 75 }, 76 { 77 "address": "module.child.module.grandchild.test_instance.test_main", 78 "mode": "managed", 79 "type": "test_instance", 80 "name": "test_main", 81 "provider_name": "registry.terraform.io/hashicorp/test", 82 "schema_version": 0, 83 "values": { 84 "ami": "main" 85 }, 86 "sensitive_values": {} 87 } 88 ], 89 "address": "module.child.module.grandchild" 90 } 91 ] 92 }, 93 { 94 "resources": [ 95 { 96 "address": "module.sibling.test_instance.test_primary", 97 "mode": "managed", 98 "type": "test_instance", 99 "name": "test_primary", 100 "provider_name": "registry.terraform.io/hashicorp/test", 101 "schema_version": 0, 102 "values": { 103 "ami": "primary" 104 }, 105 "sensitive_values": {} 106 }, 107 { 108 "address": "module.sibling.test_instance.test_secondary", 109 "mode": "managed", 110 "type": "test_instance", 111 "name": "test_secondary", 112 "provider_name": "registry.terraform.io/hashicorp/test", 113 "schema_version": 0, 114 "values": { 115 "ami": "secondary" 116 }, 117 "sensitive_values": {} 118 } 119 ], 120 "address": "module.sibling", 121 "child_modules": [ 122 { 123 "resources": [ 124 { 125 "address": "module.sibling.module.grandchild.test_instance.test_alternate", 126 "mode": "managed", 127 "type": "test_instance", 128 "name": "test_alternate", 129 "provider_name": "registry.terraform.io/hashicorp/test", 130 "schema_version": 0, 131 "values": { 132 "ami": "secondary" 133 }, 134 "sensitive_values": {} 135 }, 136 { 137 "address": "module.sibling.module.grandchild.test_instance.test_main", 138 "mode": "managed", 139 "type": "test_instance", 140 "name": "test_main", 141 "provider_name": "registry.terraform.io/hashicorp/test", 142 "schema_version": 0, 143 "values": { 144 "ami": "main" 145 }, 146 "sensitive_values": {} 147 } 148 ], 149 "address": "module.sibling.module.grandchild" 150 } 151 ] 152 } 153 ] 154 } 155 }, 156 "resource_changes": [ 157 { 158 "address": "test_instance.test", 159 "mode": "managed", 160 "type": "test_instance", 161 "name": "test", 162 "provider_name": "registry.terraform.io/hashicorp/test", 163 "change": { 164 "actions": [ 165 "create" 166 ], 167 "before": null, 168 "after": { 169 "ami": "foo" 170 }, 171 "after_unknown": { 172 "id": true 173 }, 174 "before_sensitive": false, 175 "after_sensitive": {} 176 } 177 }, 178 { 179 "address": "test_instance.test_backup", 180 "mode": "managed", 181 "type": "test_instance", 182 "name": "test_backup", 183 "provider_name": "registry.terraform.io/hashicorp/test", 184 "change": { 185 "actions": [ 186 "create" 187 ], 188 "before": null, 189 "after": { 190 "ami": "foo-backup" 191 }, 192 "after_unknown": { 193 "id": true 194 }, 195 "before_sensitive": false, 196 "after_sensitive": {} 197 } 198 }, 199 { 200 "address": "module.child.test_instance.test_primary", 201 "module_address": "module.child", 202 "mode": "managed", 203 "type": "test_instance", 204 "name": "test_primary", 205 "provider_name": "registry.terraform.io/hashicorp/test", 206 "change": { 207 "actions": [ 208 "create" 209 ], 210 "before": null, 211 "after": { 212 "ami": "primary" 213 }, 214 "after_unknown": { 215 "id": true 216 }, 217 "before_sensitive": false, 218 "after_sensitive": {} 219 } 220 }, 221 { 222 "address": "module.child.test_instance.test_secondary", 223 "module_address": "module.child", 224 "mode": "managed", 225 "type": "test_instance", 226 "name": "test_secondary", 227 "provider_name": "registry.terraform.io/hashicorp/test", 228 "change": { 229 "actions": [ 230 "create" 231 ], 232 "before": null, 233 "after": { 234 "ami": "secondary" 235 }, 236 "after_unknown": { 237 "id": true 238 }, 239 "before_sensitive": false, 240 "after_sensitive": {} 241 } 242 }, 243 { 244 "address": "module.sibling.test_instance.test_primary", 245 "module_address": "module.sibling", 246 "mode": "managed", 247 "type": "test_instance", 248 "name": "test_primary", 249 "provider_name": "registry.terraform.io/hashicorp/test", 250 "change": { 251 "actions": [ 252 "create" 253 ], 254 "before": null, 255 "after": { 256 "ami": "primary" 257 }, 258 "after_unknown": { 259 "id": true 260 }, 261 "before_sensitive": false, 262 "after_sensitive": {} 263 } 264 }, 265 { 266 "address": "module.sibling.test_instance.test_secondary", 267 "module_address": "module.sibling", 268 "mode": "managed", 269 "type": "test_instance", 270 "name": "test_secondary", 271 "provider_name": "registry.terraform.io/hashicorp/test", 272 "change": { 273 "actions": [ 274 "create" 275 ], 276 "before": null, 277 "after": { 278 "ami": "secondary" 279 }, 280 "after_unknown": { 281 "id": true 282 }, 283 "before_sensitive": false, 284 "after_sensitive": {} 285 } 286 }, 287 { 288 "address": "module.child.module.grandchild.test_instance.test_alternate", 289 "module_address": "module.child.module.grandchild", 290 "mode": "managed", 291 "type": "test_instance", 292 "name": "test_alternate", 293 "provider_name": "registry.terraform.io/hashicorp/test", 294 "change": { 295 "actions": [ 296 "create" 297 ], 298 "before": null, 299 "after": { 300 "ami": "secondary" 301 }, 302 "after_unknown": { 303 "id": true 304 }, 305 "before_sensitive": false, 306 "after_sensitive": {} 307 } 308 }, 309 { 310 "address": "module.child.module.grandchild.test_instance.test_main", 311 "module_address": "module.child.module.grandchild", 312 "mode": "managed", 313 "type": "test_instance", 314 "name": "test_main", 315 "provider_name": "registry.terraform.io/hashicorp/test", 316 "change": { 317 "actions": [ 318 "create" 319 ], 320 "before": null, 321 "after": { 322 "ami": "main" 323 }, 324 "after_unknown": { 325 "id": true 326 }, 327 "before_sensitive": false, 328 "after_sensitive": {} 329 } 330 }, 331 { 332 "address": "module.sibling.module.grandchild.test_instance.test_alternate", 333 "module_address": "module.sibling.module.grandchild", 334 "mode": "managed", 335 "type": "test_instance", 336 "name": "test_alternate", 337 "provider_name": "registry.terraform.io/hashicorp/test", 338 "change": { 339 "actions": [ 340 "create" 341 ], 342 "before": null, 343 "after": { 344 "ami": "secondary" 345 }, 346 "after_unknown": { 347 "id": true 348 }, 349 "before_sensitive": false, 350 "after_sensitive": {} 351 } 352 }, 353 { 354 "address": "module.sibling.module.grandchild.test_instance.test_main", 355 "module_address": "module.sibling.module.grandchild", 356 "mode": "managed", 357 "type": "test_instance", 358 "name": "test_main", 359 "provider_name": "registry.terraform.io/hashicorp/test", 360 "change": { 361 "actions": [ 362 "create" 363 ], 364 "before": null, 365 "after": { 366 "ami": "main" 367 }, 368 "after_unknown": { 369 "id": true 370 }, 371 "before_sensitive": false, 372 "after_sensitive": {} 373 } 374 } 375 ], 376 "configuration": { 377 "provider_config": { 378 "test": { 379 "name": "test", 380 "full_name": "registry.terraform.io/hashicorp/test", 381 "expressions": { 382 "region": { 383 "constant_value": "somewhere" 384 } 385 } 386 }, 387 "test.backup": { 388 "name": "test", 389 "full_name": "registry.terraform.io/hashicorp/test", 390 "alias": "backup", 391 "expressions": { 392 "region": { 393 "constant_value": "elsewhere" 394 } 395 } 396 } 397 }, 398 "root_module": { 399 "resources": [ 400 { 401 "address": "test_instance.test", 402 "mode": "managed", 403 "type": "test_instance", 404 "name": "test", 405 "provider_config_key": "test", 406 "expressions": { 407 "ami": { 408 "constant_value": "foo" 409 } 410 }, 411 "schema_version": 0 412 }, 413 { 414 "address": "test_instance.test_backup", 415 "mode": "managed", 416 "type": "test_instance", 417 "name": "test_backup", 418 "provider_config_key": "test.backup", 419 "expressions": { 420 "ami": { 421 "constant_value": "foo-backup" 422 } 423 }, 424 "schema_version": 0 425 } 426 ], 427 "module_calls": { 428 "child": { 429 "source": "./child", 430 "module": { 431 "resources": [ 432 { 433 "address": "test_instance.test_primary", 434 "mode": "managed", 435 "type": "test_instance", 436 "name": "test_primary", 437 "provider_config_key": "test", 438 "expressions": { 439 "ami": { 440 "constant_value": "primary" 441 } 442 }, 443 "schema_version": 0 444 }, 445 { 446 "address": "test_instance.test_secondary", 447 "mode": "managed", 448 "type": "test_instance", 449 "name": "test_secondary", 450 "provider_config_key": "test.backup", 451 "expressions": { 452 "ami": { 453 "constant_value": "secondary" 454 } 455 }, 456 "schema_version": 0 457 } 458 ], 459 "module_calls": { 460 "grandchild": { 461 "source": "./nested", 462 "module": { 463 "resources": [ 464 { 465 "address": "test_instance.test_alternate", 466 "mode": "managed", 467 "type": "test_instance", 468 "name": "test_alternate", 469 "provider_config_key": "test.backup", 470 "expressions": { 471 "ami": { 472 "constant_value": "secondary" 473 } 474 }, 475 "schema_version": 0 476 }, 477 { 478 "address": "test_instance.test_main", 479 "mode": "managed", 480 "type": "test_instance", 481 "name": "test_main", 482 "provider_config_key": "test", 483 "expressions": { 484 "ami": { 485 "constant_value": "main" 486 } 487 }, 488 "schema_version": 0 489 } 490 ] 491 } 492 } 493 } 494 } 495 }, 496 "sibling": { 497 "source": "./child", 498 "module": { 499 "resources": [ 500 { 501 "address": "test_instance.test_primary", 502 "mode": "managed", 503 "type": "test_instance", 504 "name": "test_primary", 505 "provider_config_key": "test", 506 "expressions": { 507 "ami": { 508 "constant_value": "primary" 509 } 510 }, 511 "schema_version": 0 512 }, 513 { 514 "address": "test_instance.test_secondary", 515 "mode": "managed", 516 "type": "test_instance", 517 "name": "test_secondary", 518 "provider_config_key": "test", 519 "expressions": { 520 "ami": { 521 "constant_value": "secondary" 522 } 523 }, 524 "schema_version": 0 525 } 526 ], 527 "module_calls": { 528 "grandchild": { 529 "source": "./nested", 530 "module": { 531 "resources": [ 532 { 533 "address": "test_instance.test_alternate", 534 "mode": "managed", 535 "type": "test_instance", 536 "name": "test_alternate", 537 "provider_config_key": "test", 538 "expressions": { 539 "ami": { 540 "constant_value": "secondary" 541 } 542 }, 543 "schema_version": 0 544 }, 545 { 546 "address": "test_instance.test_main", 547 "mode": "managed", 548 "type": "test_instance", 549 "name": "test_main", 550 "provider_config_key": "test", 551 "expressions": { 552 "ami": { 553 "constant_value": "main" 554 } 555 }, 556 "schema_version": 0 557 } 558 ] 559 } 560 } 561 } 562 } 563 } 564 } 565 } 566 } 567 }