github.com/iaas-resource-provision/iaas-rpc@v1.0.7-0.20211021023331-ed21f798c408/internal/command/testdata/show-json/modules/output.json (about)

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