github.com/hugorut/terraform@v1.1.3/src/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 "root_module": { 147 "resources": [ 148 { 149 "address": "test_instance.no_refresh", 150 "mode": "managed", 151 "type": "test_instance", 152 "name": "no_refresh", 153 "provider_config_key": "test", 154 "schema_version": 0, 155 "expressions": { 156 "ami": { 157 "constant_value": "bar" 158 } 159 } 160 }, 161 { 162 "address": "test_instance.should_refresh_with_move", 163 "mode": "managed", 164 "type": "test_instance", 165 "name": "should_refresh_with_move", 166 "provider_config_key": "test", 167 "schema_version": 0, 168 "expressions": { 169 "ami": { 170 "constant_value": "baz" 171 } 172 } 173 } 174 ] 175 } 176 } 177 }