github.com/terramate-io/tf@v0.0.0-20230830114523-fce866b4dfcd/command/testdata/show-json/conditions/output-refresh-only.json (about)

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