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