github.com/graywolf-at-work-2/terraform-vendor@v1.4.5/internal/command/testdata/show-json/nested-modules/output.json (about)

     1  {
     2    "format_version": "1.0",
     3    "planned_values": {
     4      "root_module": {
     5        "child_modules": [
     6          {
     7            "address": "module.my_module",
     8            "child_modules": [
     9              {
    10                "resources": [
    11                  {
    12                    "address": "module.my_module.module.more.test_instance.test",
    13                    "mode": "managed",
    14                    "type": "test_instance",
    15                    "name": "test",
    16                    "provider_name": "registry.terraform.io/hashicorp/test",
    17                    "schema_version": 0,
    18                    "values": {
    19                      "ami": "bar-var"
    20                    },
    21                    "sensitive_values": {}
    22                  }
    23                ],
    24                "address": "module.my_module.module.more"
    25              }
    26            ]
    27          }
    28        ]
    29      }
    30    },
    31    "resource_changes": [
    32      {
    33        "address": "module.my_module.module.more.test_instance.test",
    34        "module_address": "module.my_module.module.more",
    35        "mode": "managed",
    36        "type": "test_instance",
    37        "name": "test",
    38        "provider_name": "registry.terraform.io/hashicorp/test",
    39        "change": {
    40          "actions": ["create"],
    41          "before": null,
    42          "after": {
    43            "ami": "bar-var"
    44          },
    45          "after_unknown": {
    46            "id": true
    47          },
    48          "after_sensitive": {},
    49          "before_sensitive": false
    50        }
    51      }
    52    ],
    53    "configuration": {
    54      "provider_config": {
    55        "module.my_module.module.more:test": {
    56          "module_address": "module.my_module.module.more",
    57          "name": "test",
    58          "full_name": "registry.terraform.io/hashicorp/test"
    59        }
    60      },
    61      "root_module": {
    62        "module_calls": {
    63          "my_module": {
    64            "source": "./modules",
    65            "module": {
    66              "module_calls": {
    67                "more": {
    68                  "source": "./more-modules",
    69                  "module": {
    70                    "resources": [
    71                      {
    72                        "address": "test_instance.test",
    73                        "mode": "managed",
    74                        "type": "test_instance",
    75                        "name": "test",
    76                        "provider_config_key": "module.my_module.module.more:test",
    77                        "expressions": {
    78                          "ami": {
    79                            "references": ["var.test_var"]
    80                          }
    81                        },
    82                        "schema_version": 0
    83                      }
    84                    ],
    85                    "variables": {
    86                      "test_var": {
    87                        "default": "bar-var"
    88                      }
    89                    }
    90                  }
    91                }
    92              }
    93            }
    94          }
    95        }
    96      }
    97    }
    98  }