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

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