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

     1  {
     2      "format_version": "0.2",
     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                  "before_sensitive": {}
    56              }
    57          }
    58      ],
    59      "resource_changes": [
    60          {
    61              "address": "test_instance.no_refresh",
    62              "mode": "managed",
    63              "type": "test_instance",
    64              "provider_name": "registry.terraform.io/hashicorp/test",
    65              "name": "no_refresh",
    66              "change": {
    67                  "actions": [
    68                      "update"
    69                  ],
    70                  "before": {
    71                      "ami": "foo",
    72                      "id": "placeholder"
    73                  },
    74                  "after": {
    75                      "ami": "bar",
    76                      "id": "placeholder"
    77                  },
    78                  "after_unknown": {},
    79                  "after_sensitive": {},
    80                  "before_sensitive": {}
    81              }
    82          },
    83          {
    84              "address": "test_instance.should_refresh",
    85              "mode": "managed",
    86              "type": "test_instance",
    87              "provider_name": "registry.terraform.io/hashicorp/test",
    88              "name": "should_refresh",
    89              "change": {
    90                  "actions": [
    91                      "update"
    92                  ],
    93                  "before": {
    94                      "ami": "refreshed",
    95                      "id": "placeholder"
    96                  },
    97                  "after": {
    98                      "ami": "baz",
    99                      "id": "placeholder"
   100                  },
   101                  "after_unknown": {},
   102                  "after_sensitive": {},
   103                  "before_sensitive": {}
   104              }
   105          }
   106      ],
   107      "prior_state": {
   108          "format_version": "0.2",
   109          "values": {
   110              "root_module": {
   111                  "resources": [
   112                      {
   113                          "address": "test_instance.no_refresh",
   114                          "mode": "managed",
   115                          "type": "test_instance",
   116                          "name": "no_refresh",
   117                          "schema_version": 0,
   118                          "provider_name": "registry.terraform.io/hashicorp/test",
   119                          "values": {
   120                              "ami": "foo",
   121                              "id": "placeholder"
   122                          },
   123                          "sensitive_values": {}
   124                      },
   125                      {
   126                          "address": "test_instance.should_refresh",
   127                          "mode": "managed",
   128                          "type": "test_instance",
   129                          "name": "should_refresh",
   130                          "schema_version": 0,
   131                          "provider_name": "registry.terraform.io/hashicorp/test",
   132                          "values": {
   133                              "ami": "refreshed",
   134                              "id": "placeholder"
   135                          },
   136                          "sensitive_values": {}
   137                      }
   138                  ]
   139              }
   140          }
   141      },
   142      "configuration": {
   143          "root_module": {
   144              "resources": [
   145                  {
   146                      "address": "test_instance.no_refresh",
   147                      "mode": "managed",
   148                      "type": "test_instance",
   149                      "name": "no_refresh",
   150                      "provider_config_key": "test",
   151                      "schema_version": 0,
   152                      "expressions": {
   153                          "ami": {
   154                              "constant_value": "bar"
   155                          }
   156                      }
   157                  },
   158                  {
   159                      "address": "test_instance.should_refresh",
   160                      "mode": "managed",
   161                      "type": "test_instance",
   162                      "name": "should_refresh",
   163                      "provider_config_key": "test",
   164                      "schema_version": 0,
   165                      "expressions": {
   166                          "ami": {
   167                              "constant_value": "baz"
   168                          }
   169                      }
   170                  }
   171              ]
   172          }
   173      }
   174  }