github.com/kanishk98/terraform@v1.3.0-dev.0.20220917174235-661ca8088a6a/internal/command/testdata/show-json/provider-aliasing-default/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        "child_modules": [
    21          {
    22            "resources": [
    23              {
    24                "address": "module.child.test_instance.test",
    25                "mode": "managed",
    26                "type": "test_instance",
    27                "name": "test",
    28                "provider_name": "registry.terraform.io/hashicorp/test",
    29                "schema_version": 0,
    30                "values": {
    31                  "ami": "bar"
    32                },
    33                "sensitive_values": {}
    34              }
    35            ],
    36            "address": "module.child",
    37            "child_modules": [
    38              {
    39                "resources": [
    40                  {
    41                    "address": "module.child.module.no_requirements.test_instance.test",
    42                    "mode": "managed",
    43                    "type": "test_instance",
    44                    "name": "test",
    45                    "provider_name": "registry.terraform.io/hashicorp/test",
    46                    "schema_version": 0,
    47                    "values": {
    48                      "ami": "qux"
    49                    },
    50                    "sensitive_values": {}
    51                  }
    52                ],
    53                "address": "module.child.module.no_requirements"
    54              },
    55              {
    56                "resources": [
    57                  {
    58                    "address": "module.child.module.with_requirement.test_instance.test",
    59                    "mode": "managed",
    60                    "type": "test_instance",
    61                    "name": "test",
    62                    "provider_name": "registry.terraform.io/hashicorp/test",
    63                    "schema_version": 0,
    64                    "values": {
    65                      "ami": "baz"
    66                    },
    67                    "sensitive_values": {}
    68                  }
    69                ],
    70                "address": "module.child.module.with_requirement"
    71              }
    72            ]
    73          }
    74        ]
    75      }
    76    },
    77    "resource_changes": [
    78      {
    79        "address": "module.child.module.no_requirements.test_instance.test",
    80        "module_address": "module.child.module.no_requirements",
    81        "mode": "managed",
    82        "type": "test_instance",
    83        "name": "test",
    84        "provider_name": "registry.terraform.io/hashicorp/test",
    85        "change": {
    86          "actions": [
    87            "create"
    88          ],
    89          "before": null,
    90          "after": {
    91            "ami": "qux"
    92          },
    93          "after_unknown": {
    94            "id": true
    95          },
    96          "before_sensitive": false,
    97          "after_sensitive": {}
    98        }
    99      },
   100      {
   101        "address": "module.child.module.with_requirement.test_instance.test",
   102        "module_address": "module.child.module.with_requirement",
   103        "mode": "managed",
   104        "type": "test_instance",
   105        "name": "test",
   106        "provider_name": "registry.terraform.io/hashicorp/test",
   107        "change": {
   108          "actions": [
   109            "create"
   110          ],
   111          "before": null,
   112          "after": {
   113            "ami": "baz"
   114          },
   115          "after_unknown": {
   116            "id": true
   117          },
   118          "before_sensitive": false,
   119          "after_sensitive": {}
   120        }
   121      },
   122      {
   123        "address": "module.child.test_instance.test",
   124        "module_address": "module.child",
   125        "mode": "managed",
   126        "type": "test_instance",
   127        "name": "test",
   128        "provider_name": "registry.terraform.io/hashicorp/test",
   129        "change": {
   130          "actions": [
   131            "create"
   132          ],
   133          "before": null,
   134          "after": {
   135            "ami": "bar"
   136          },
   137          "after_unknown": {
   138            "id": true
   139          },
   140          "before_sensitive": false,
   141          "after_sensitive": {}
   142        }
   143      },
   144      {
   145        "address": "test_instance.test",
   146        "mode": "managed",
   147        "type": "test_instance",
   148        "name": "test",
   149        "provider_name": "registry.terraform.io/hashicorp/test",
   150        "change": {
   151          "actions": [
   152            "create"
   153          ],
   154          "before": null,
   155          "after": {
   156            "ami": "foo"
   157          },
   158          "after_unknown": {
   159            "id": true
   160          },
   161          "before_sensitive": false,
   162          "after_sensitive": {}
   163        }
   164      }
   165    ],
   166    "configuration": {
   167      "provider_config": {
   168        "test": {
   169          "name": "test",
   170          "full_name": "registry.terraform.io/hashicorp/test",
   171          "expressions": {
   172            "region": {
   173              "constant_value": "somewhere"
   174            }
   175          }
   176        },
   177        "test.backup": {
   178          "name": "test",
   179          "full_name": "registry.terraform.io/hashicorp/test",
   180          "alias": "backup",
   181          "expressions": {
   182            "region": {
   183              "constant_value": "elsewhere"
   184            }
   185          }
   186        }
   187      },
   188      "root_module": {
   189        "resources": [
   190          {
   191            "address": "test_instance.test",
   192            "mode": "managed",
   193            "type": "test_instance",
   194            "name": "test",
   195            "provider_config_key": "test",
   196            "expressions": {
   197              "ami": {
   198                "constant_value": "foo"
   199              }
   200            },
   201            "schema_version": 0
   202          }
   203        ],
   204        "module_calls": {
   205          "child": {
   206            "source": "./child",
   207            "module": {
   208              "resources": [
   209                {
   210                  "address": "test_instance.test",
   211                  "mode": "managed",
   212                  "type": "test_instance",
   213                  "name": "test",
   214                  "provider_config_key": "test.backup",
   215                  "expressions": {
   216                    "ami": {
   217                      "constant_value": "bar"
   218                    }
   219                  },
   220                  "schema_version": 0
   221                }
   222              ],
   223              "module_calls": {
   224                "no_requirements": {
   225                  "source": "./nested-no-requirements",
   226                  "module": {
   227                    "resources": [
   228                      {
   229                        "address": "test_instance.test",
   230                        "mode": "managed",
   231                        "type": "test_instance",
   232                        "name": "test",
   233                        "provider_config_key": "test.backup",
   234                        "expressions": {
   235                          "ami": {
   236                            "constant_value": "qux"
   237                          }
   238                        },
   239                        "schema_version": 0
   240                      }
   241                    ]
   242                  }
   243                },
   244                "with_requirement": {
   245                  "source": "./nested",
   246                  "depends_on": ["module.no_requirements"],
   247                  "module": {
   248                    "resources": [
   249                      {
   250                        "address": "test_instance.test",
   251                        "mode": "managed",
   252                        "type": "test_instance",
   253                        "name": "test",
   254                        "provider_config_key": "test.backup",
   255                        "expressions": {
   256                          "ami": {
   257                            "constant_value": "baz"
   258                          }
   259                        },
   260                        "schema_version": 0
   261                      }
   262                    ]
   263                  }
   264                }
   265              }
   266            }
   267          }
   268        }
   269      }
   270    }
   271  }