github.com/kanishk98/terraform@v1.3.0-dev.0.20220917174235-661ca8088a6a/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": "module.child.module.grandchild.test_instance.test_alternate",
   159        "module_address": "module.child.module.grandchild",
   160        "mode": "managed",
   161        "type": "test_instance",
   162        "name": "test_alternate",
   163        "provider_name": "registry.terraform.io/hashicorp/test",
   164        "change": {
   165          "actions": [
   166            "create"
   167          ],
   168          "before": null,
   169          "after": {
   170            "ami": "secondary"
   171          },
   172          "after_unknown": {
   173            "id": true
   174          },
   175          "before_sensitive": false,
   176          "after_sensitive": {}
   177        }
   178      },
   179      {
   180        "address": "module.child.module.grandchild.test_instance.test_main",
   181        "module_address": "module.child.module.grandchild",
   182        "mode": "managed",
   183        "type": "test_instance",
   184        "name": "test_main",
   185        "provider_name": "registry.terraform.io/hashicorp/test",
   186        "change": {
   187          "actions": [
   188            "create"
   189          ],
   190          "before": null,
   191          "after": {
   192            "ami": "main"
   193          },
   194          "after_unknown": {
   195            "id": true
   196          },
   197          "before_sensitive": false,
   198          "after_sensitive": {}
   199        }
   200      },
   201      {
   202        "address": "module.child.test_instance.test_primary",
   203        "module_address": "module.child",
   204        "mode": "managed",
   205        "type": "test_instance",
   206        "name": "test_primary",
   207        "provider_name": "registry.terraform.io/hashicorp/test",
   208        "change": {
   209          "actions": [
   210            "create"
   211          ],
   212          "before": null,
   213          "after": {
   214            "ami": "primary"
   215          },
   216          "after_unknown": {
   217            "id": true
   218          },
   219          "before_sensitive": false,
   220          "after_sensitive": {}
   221        }
   222      },
   223      {
   224        "address": "module.child.test_instance.test_secondary",
   225        "module_address": "module.child",
   226        "mode": "managed",
   227        "type": "test_instance",
   228        "name": "test_secondary",
   229        "provider_name": "registry.terraform.io/hashicorp/test",
   230        "change": {
   231          "actions": [
   232            "create"
   233          ],
   234          "before": null,
   235          "after": {
   236            "ami": "secondary"
   237          },
   238          "after_unknown": {
   239            "id": true
   240          },
   241          "before_sensitive": false,
   242          "after_sensitive": {}
   243        }
   244      },
   245      {
   246        "address": "module.sibling.module.grandchild.test_instance.test_alternate",
   247        "module_address": "module.sibling.module.grandchild",
   248        "mode": "managed",
   249        "type": "test_instance",
   250        "name": "test_alternate",
   251        "provider_name": "registry.terraform.io/hashicorp/test",
   252        "change": {
   253          "actions": [
   254            "create"
   255          ],
   256          "before": null,
   257          "after": {
   258            "ami": "secondary"
   259          },
   260          "after_unknown": {
   261            "id": true
   262          },
   263          "before_sensitive": false,
   264          "after_sensitive": {}
   265        }
   266      },
   267      {
   268        "address": "module.sibling.module.grandchild.test_instance.test_main",
   269        "module_address": "module.sibling.module.grandchild",
   270        "mode": "managed",
   271        "type": "test_instance",
   272        "name": "test_main",
   273        "provider_name": "registry.terraform.io/hashicorp/test",
   274        "change": {
   275          "actions": [
   276            "create"
   277          ],
   278          "before": null,
   279          "after": {
   280            "ami": "main"
   281          },
   282          "after_unknown": {
   283            "id": true
   284          },
   285          "before_sensitive": false,
   286          "after_sensitive": {}
   287        }
   288      },
   289      {
   290        "address": "module.sibling.test_instance.test_primary",
   291        "module_address": "module.sibling",
   292        "mode": "managed",
   293        "type": "test_instance",
   294        "name": "test_primary",
   295        "provider_name": "registry.terraform.io/hashicorp/test",
   296        "change": {
   297          "actions": [
   298            "create"
   299          ],
   300          "before": null,
   301          "after": {
   302            "ami": "primary"
   303          },
   304          "after_unknown": {
   305            "id": true
   306          },
   307          "before_sensitive": false,
   308          "after_sensitive": {}
   309        }
   310      },
   311      {
   312        "address": "module.sibling.test_instance.test_secondary",
   313        "module_address": "module.sibling",
   314        "mode": "managed",
   315        "type": "test_instance",
   316        "name": "test_secondary",
   317        "provider_name": "registry.terraform.io/hashicorp/test",
   318        "change": {
   319          "actions": [
   320            "create"
   321          ],
   322          "before": null,
   323          "after": {
   324            "ami": "secondary"
   325          },
   326          "after_unknown": {
   327            "id": true
   328          },
   329          "before_sensitive": false,
   330          "after_sensitive": {}
   331        }
   332      },
   333      {
   334        "address": "test_instance.test",
   335        "mode": "managed",
   336        "type": "test_instance",
   337        "name": "test",
   338        "provider_name": "registry.terraform.io/hashicorp/test",
   339        "change": {
   340          "actions": [
   341            "create"
   342          ],
   343          "before": null,
   344          "after": {
   345            "ami": "foo"
   346          },
   347          "after_unknown": {
   348            "id": true
   349          },
   350          "before_sensitive": false,
   351          "after_sensitive": {}
   352        }
   353      },
   354      {
   355        "address": "test_instance.test_backup",
   356        "mode": "managed",
   357        "type": "test_instance",
   358        "name": "test_backup",
   359        "provider_name": "registry.terraform.io/hashicorp/test",
   360        "change": {
   361          "actions": [
   362            "create"
   363          ],
   364          "before": null,
   365          "after": {
   366            "ami": "foo-backup"
   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  }