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

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