github.com/hashicorp/packer@v1.14.3/hcl2template/testdata/build.pkr.hcl/basic.pkr.hcl (about) 1 2 // starts resources to provision them. 3 build { 4 sources = [ 5 "source.amazon-ebs.ubuntu-1604", 6 "source.virtualbox-iso.ubuntu-1204", 7 ] 8 9 provisioner "shell" { 10 string = lower("STRING") 11 int = 42 12 int64 = 43 13 bool = true 14 trilean = true 15 duration = "10s" 16 map_string_string = { 17 a = "b" 18 c = "d" 19 } 20 slice_string = [ 21 "a", 22 "b", 23 "c", 24 ] 25 26 nested { 27 string = "string" 28 int = 42 29 int64 = 43 30 bool = true 31 trilean = true 32 duration = "10s" 33 map_string_string = { 34 a = "b" 35 c = "d" 36 } 37 slice_string = [ 38 "a", 39 "b", 40 "c", 41 ] 42 } 43 44 nested_slice { 45 } 46 } 47 48 provisioner "file" { 49 string = "string" 50 int = 42 51 int64 = 43 52 bool = true 53 trilean = true 54 duration = "10s" 55 map_string_string = { 56 a = "b" 57 c = "d" 58 } 59 slice_string = [ 60 "a", 61 "b", 62 "c", 63 ] 64 65 nested { 66 string = "string" 67 int = 42 68 int64 = 43 69 bool = true 70 trilean = true 71 duration = "10s" 72 map_string_string = { 73 a = "b" 74 c = "d" 75 } 76 slice_string = [ 77 "a", 78 "b", 79 "c", 80 ] 81 } 82 83 nested_slice { 84 } 85 } 86 87 post-processor "amazon-import" { 88 string = "string" 89 int = 42 90 int64 = 43 91 bool = true 92 trilean = true 93 duration = "10s" 94 map_string_string = { 95 a = "b" 96 c = "d" 97 } 98 slice_string = [ 99 "a", 100 "b", 101 "c", 102 ] 103 104 nested { 105 string = "string" 106 int = 42 107 int64 = 43 108 bool = true 109 trilean = true 110 duration = "10s" 111 map_string_string = { 112 a = "b" 113 c = "d" 114 } 115 slice_string = [ 116 "a", 117 "b", 118 "c", 119 ] 120 } 121 122 nested_slice { 123 } 124 } 125 }