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