github.com/graywolf-at-work-2/terraform-vendor@v1.4.5/internal/cloud/testdata/plan-json-full/main.tf (about) 1 provider "tfcoremock" {} 2 3 # In order to generate the JSON logs contained in plan.log 4 # First ONLY apply tfcoremock_simple_resource.example (set the bool attribute 5 # to true). Make sure the complex_resource is commented out. 6 # Once applied, change the bool attribute to false and uncomment the complex 7 # resource. 8 9 resource "tfcoremock_simple_resource" "example" { 10 id = "my-simple-resource" 11 bool = false 12 number = 0 13 string = "Hello, world!" 14 float = 0 15 integer = 0 16 } 17 18 resource "tfcoremock_complex_resource" "example" { 19 id = "my-complex-resource" 20 21 bool = true 22 number = 0 23 string = "Hello, world!" 24 float = 0 25 integer = 0 26 27 list = [ 28 { 29 string = "list.one" 30 }, 31 { 32 string = "list.two" 33 } 34 ] 35 36 set = [ 37 { 38 string = "set.one" 39 }, 40 { 41 string = "set.two" 42 } 43 ] 44 45 map = { 46 "one" : { 47 string = "map.one" 48 }, 49 "two" : { 50 string = "map.two" 51 } 52 } 53 54 object = { 55 56 string = "nested object" 57 58 object = { 59 string = "nested nested object" 60 } 61 } 62 63 list_block { 64 string = "list_block.one" 65 } 66 67 list_block { 68 string = "list_block.two" 69 } 70 71 list_block { 72 string = "list_block.three" 73 } 74 75 set_block { 76 string = "set_block.one" 77 } 78 79 set_block { 80 string = "set_block.two" 81 } 82 }