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

     1  {
     2      "format_version": "1.0",
     3      "terraform_version": "0.13.0",
     4      "variables": {
     5          "test_var": {
     6              "value": "bar"
     7          }
     8      },
     9      "planned_values": {
    10          "outputs": {
    11              "test": {
    12                  "sensitive": false,
    13                  "type": "string",
    14                  "value": "bar"
    15              }
    16          },
    17          "root_module": {
    18              "resources": [
    19                  {
    20                      "address": "test_instance.test[0]",
    21                      "mode": "managed",
    22                      "type": "test_instance",
    23                      "name": "test",
    24                      "index": 0,
    25                      "provider_name": "registry.terraform.io/hashicorp/test",
    26                      "schema_version": 0,
    27                      "values": {
    28                          "ami": "bar",
    29                          "id": "placeholder"
    30                      },
    31                      "sensitive_values": {}
    32                  },
    33                  {
    34                      "address": "test_instance.test[1]",
    35                      "mode": "managed",
    36                      "type": "test_instance",
    37                      "name": "test",
    38                      "index": 1,
    39                      "provider_name": "registry.terraform.io/hashicorp/test",
    40                      "schema_version": 0,
    41                      "values": {
    42                          "ami": "bar"
    43                      },
    44                      "sensitive_values": {}
    45                  }
    46              ]
    47          }
    48      },
    49      "resource_changes": [
    50          {
    51              "address": "test_instance.test[0]",
    52              "mode": "managed",
    53              "type": "test_instance",
    54              "name": "test",
    55              "index": 0,
    56              "previous_address": "test_instance.test",
    57              "provider_name": "registry.terraform.io/hashicorp/test",
    58              "change": {
    59                  "actions": [
    60                      "no-op"
    61                  ],
    62                  "before": {
    63                      "ami": "bar",
    64                      "id": "placeholder"
    65                  },
    66                  "after": {
    67                      "ami": "bar",
    68                      "id": "placeholder"
    69                  },
    70                  "after_unknown": {},
    71                  "after_sensitive": {},
    72                  "before_sensitive": {}
    73              }
    74          },
    75          {
    76              "address": "test_instance.test[1]",
    77              "mode": "managed",
    78              "type": "test_instance",
    79              "name": "test",
    80              "index": 1,
    81              "provider_name": "registry.terraform.io/hashicorp/test",
    82              "change": {
    83                  "actions": [
    84                      "create"
    85                  ],
    86                  "before": null,
    87                  "after": {
    88                      "ami": "bar"
    89                  },
    90                  "after_unknown": {
    91                      "id": true
    92                  },
    93                  "after_sensitive": {},
    94                  "before_sensitive": false
    95              }
    96          }
    97      ],
    98      "output_changes": {
    99          "test": {
   100              "actions": [
   101                  "no-op"
   102              ],
   103              "before": "bar",
   104              "after": "bar",
   105              "after_unknown": false,
   106              "before_sensitive": false,
   107              "after_sensitive": false
   108          }
   109      },
   110      "prior_state": {
   111          "format_version": "1.0",
   112          "terraform_version": "0.13.0",
   113          "values": {
   114              "outputs": {
   115                  "test": {
   116                      "sensitive": false,
   117                      "type": "string",
   118                      "value": "bar"
   119                  }
   120              },
   121              "root_module": {
   122                  "resources": [
   123                      {
   124                          "address": "test_instance.test[0]",
   125                          "mode": "managed",
   126                          "type": "test_instance",
   127                          "name": "test",
   128                          "index": 0,
   129                          "provider_name": "registry.terraform.io/hashicorp/test",
   130                          "schema_version": 0,
   131                          "values": {
   132                              "ami": "bar",
   133                              "id": "placeholder"
   134                          },
   135                          "sensitive_values": {}
   136                      }
   137                  ]
   138              }
   139          }
   140      },
   141      "configuration": {
   142          "provider_config": {
   143              "test": {
   144                  "name": "test",
   145                  "full_name": "registry.terraform.io/hashicorp/test"
   146              }
   147          },
   148          "root_module": {
   149              "outputs": {
   150                  "test": {
   151                      "expression": {
   152                          "references": [
   153                              "var.test_var"
   154                          ]
   155                      }
   156                  }
   157              },
   158              "resources": [
   159                  {
   160                      "address": "test_instance.test",
   161                      "mode": "managed",
   162                      "type": "test_instance",
   163                      "name": "test",
   164                      "provider_config_key": "test",
   165                      "expressions": {
   166                          "ami": {
   167                              "references": [
   168                                  "var.test_var"
   169                              ]
   170                          }
   171                      },
   172                      "schema_version": 0,
   173                      "count_expression": {
   174                          "constant_value": 2
   175                      }
   176                  }
   177              ],
   178              "variables": {
   179                  "test_var": {
   180                      "default": "bar"
   181                  }
   182              }
   183          }
   184      }
   185  }