github.com/graywolf-at-work-2/terraform-vendor@v1.4.5/internal/command/testdata/show-json/moved-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_with_move", 21 "mode": "managed", 22 "type": "test_instance", 23 "name": "should_refresh_with_move", 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_with_move", 38 "mode": "managed", 39 "type": "test_instance", 40 "previous_address": "test_instance.should_refresh", 41 "provider_name": "registry.terraform.io/hashicorp/test", 42 "name": "should_refresh_with_move", 43 "change": { 44 "actions": [ 45 "update" 46 ], 47 "before": { 48 "ami": "refresh-me", 49 "id": "placeholder" 50 }, 51 "after": { 52 "ami": "refreshed", 53 "id": "placeholder" 54 }, 55 "after_sensitive": {}, 56 "after_unknown": {}, 57 "before_sensitive": {} 58 } 59 } 60 ], 61 "resource_changes": [ 62 { 63 "address": "test_instance.no_refresh", 64 "mode": "managed", 65 "type": "test_instance", 66 "provider_name": "registry.terraform.io/hashicorp/test", 67 "name": "no_refresh", 68 "change": { 69 "actions": [ 70 "update" 71 ], 72 "before": { 73 "ami": "foo", 74 "id": "placeholder" 75 }, 76 "after": { 77 "ami": "bar", 78 "id": "placeholder" 79 }, 80 "after_unknown": {}, 81 "after_sensitive": {}, 82 "before_sensitive": {} 83 } 84 }, 85 { 86 "address": "test_instance.should_refresh_with_move", 87 "mode": "managed", 88 "type": "test_instance", 89 "previous_address": "test_instance.should_refresh", 90 "provider_name": "registry.terraform.io/hashicorp/test", 91 "name": "should_refresh_with_move", 92 "change": { 93 "actions": [ 94 "update" 95 ], 96 "before": { 97 "ami": "refreshed", 98 "id": "placeholder" 99 }, 100 "after": { 101 "ami": "baz", 102 "id": "placeholder" 103 }, 104 "after_unknown": {}, 105 "after_sensitive": {}, 106 "before_sensitive": {} 107 } 108 } 109 ], 110 "prior_state": { 111 "format_version": "1.0", 112 "values": { 113 "root_module": { 114 "resources": [ 115 { 116 "address": "test_instance.no_refresh", 117 "mode": "managed", 118 "type": "test_instance", 119 "name": "no_refresh", 120 "schema_version": 0, 121 "provider_name": "registry.terraform.io/hashicorp/test", 122 "values": { 123 "ami": "foo", 124 "id": "placeholder" 125 }, 126 "sensitive_values": {} 127 }, 128 { 129 "address": "test_instance.should_refresh_with_move", 130 "mode": "managed", 131 "type": "test_instance", 132 "name": "should_refresh_with_move", 133 "schema_version": 0, 134 "provider_name": "registry.terraform.io/hashicorp/test", 135 "values": { 136 "ami": "refreshed", 137 "id": "placeholder" 138 }, 139 "sensitive_values": {} 140 } 141 ] 142 } 143 } 144 }, 145 "configuration": { 146 "provider_config": { 147 "test": { 148 "name": "test", 149 "full_name": "registry.terraform.io/hashicorp/test" 150 } 151 }, 152 "root_module": { 153 "resources": [ 154 { 155 "address": "test_instance.no_refresh", 156 "mode": "managed", 157 "type": "test_instance", 158 "name": "no_refresh", 159 "provider_config_key": "test", 160 "schema_version": 0, 161 "expressions": { 162 "ami": { 163 "constant_value": "bar" 164 } 165 } 166 }, 167 { 168 "address": "test_instance.should_refresh_with_move", 169 "mode": "managed", 170 "type": "test_instance", 171 "name": "should_refresh_with_move", 172 "provider_config_key": "test", 173 "schema_version": 0, 174 "expressions": { 175 "ami": { 176 "constant_value": "baz" 177 } 178 } 179 } 180 ] 181 } 182 } 183 }