github.com/iaas-resource-provision/iaas-rpc@v1.0.7-0.20211021023331-ed21f798c408/internal/command/testdata/show-json/provider-version-no-config/output.json (about) 1 { 2 "format_version": "0.2", 3 "variables": { 4 "test_var": { 5 "value": "bar" 6 } 7 }, 8 "planned_values": { 9 "outputs": { 10 "test": { 11 "sensitive": false, 12 "value": "bar" 13 } 14 }, 15 "root_module": { 16 "resources": [ 17 { 18 "address": "test_instance.test[0]", 19 "index": 0, 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 }, 28 "sensitive_values": {} 29 }, 30 { 31 "address": "test_instance.test[1]", 32 "index": 1, 33 "mode": "managed", 34 "type": "test_instance", 35 "name": "test", 36 "provider_name": "registry.terraform.io/hashicorp/test", 37 "schema_version": 0, 38 "values": { 39 "ami": "bar" 40 }, 41 "sensitive_values": {} 42 }, 43 { 44 "address": "test_instance.test[2]", 45 "index": 2, 46 "mode": "managed", 47 "type": "test_instance", 48 "name": "test", 49 "provider_name": "registry.terraform.io/hashicorp/test", 50 "schema_version": 0, 51 "values": { 52 "ami": "bar" 53 }, 54 "sensitive_values": {} 55 } 56 ] 57 } 58 }, 59 "prior_state": { 60 "format_version": "0.2", 61 "values": { 62 "outputs": { 63 "test": { 64 "sensitive": false, 65 "value": "bar" 66 } 67 }, 68 "root_module": {} 69 } 70 }, 71 "resource_changes": [ 72 { 73 "address": "test_instance.test[0]", 74 "index": 0, 75 "mode": "managed", 76 "type": "test_instance", 77 "provider_name": "registry.terraform.io/hashicorp/test", 78 "name": "test", 79 "change": { 80 "actions": [ 81 "create" 82 ], 83 "before": null, 84 "after_unknown": { 85 "id": true 86 }, 87 "after": { 88 "ami": "bar" 89 }, 90 "after_sensitive": {}, 91 "before_sensitive": false 92 } 93 }, 94 { 95 "address": "test_instance.test[1]", 96 "index": 1, 97 "mode": "managed", 98 "type": "test_instance", 99 "provider_name": "registry.terraform.io/hashicorp/test", 100 "name": "test", 101 "change": { 102 "actions": [ 103 "create" 104 ], 105 "before": null, 106 "after_unknown": { 107 "id": true 108 }, 109 "after": { 110 "ami": "bar" 111 }, 112 "after_sensitive": {}, 113 "before_sensitive": false 114 } 115 }, 116 { 117 "address": "test_instance.test[2]", 118 "index": 2, 119 "mode": "managed", 120 "type": "test_instance", 121 "provider_name": "registry.terraform.io/hashicorp/test", 122 "name": "test", 123 "change": { 124 "actions": [ 125 "create" 126 ], 127 "before": null, 128 "after_unknown": { 129 "id": true 130 }, 131 "after": { 132 "ami": "bar" 133 }, 134 "after_sensitive": {}, 135 "before_sensitive": false 136 } 137 } 138 ], 139 "output_changes": { 140 "test": { 141 "actions": [ 142 "create" 143 ], 144 "before": null, 145 "after": "bar", 146 "after_unknown": false, 147 "before_sensitive": false, 148 "after_sensitive": false 149 } 150 }, 151 "configuration": { 152 "provider_config": { 153 "test": { 154 "name": "test", 155 "version_constraint": ">= 1.2.3" 156 } 157 }, 158 "root_module": { 159 "outputs": { 160 "test": { 161 "expression": { 162 "references": [ 163 "var.test_var" 164 ] 165 } 166 } 167 }, 168 "resources": [ 169 { 170 "address": "test_instance.test", 171 "mode": "managed", 172 "type": "test_instance", 173 "name": "test", 174 "provider_config_key": "test", 175 "schema_version": 0, 176 "expressions": { 177 "ami": { 178 "references": [ 179 "var.test_var" 180 ] 181 } 182 }, 183 "count_expression": { 184 "constant_value": 3 185 } 186 } 187 ], 188 "variables": { 189 "test_var": { 190 "default": "bar" 191 } 192 } 193 } 194 } 195 }