github.com/hashicorp/packer@v1.14.3/hcl2template/testdata/complete/sources.pkr.hcl (about) 1 2 source "amazon-ebs" "ubuntu-1604" { 3 int = 42 4 nested_slice { 5 dynamic "tag" { 6 for_each = local.standard_tags 7 content { 8 key = tag.key 9 value = tag.value 10 } 11 } 12 } 13 } 14 15 source "virtualbox-iso" "ubuntu-1204" { 16 string = "${source.name}-${source.type}" 17 int = 42 18 int64 = 43 19 bool = true 20 trilean = true 21 duration = "10s" 22 23 map_string_string = { 24 a = "b" 25 c = "d" 26 } 27 slice_string = [ 28 "a", 29 "b", 30 "c", 31 ] 32 slice_slice_string = [ 33 ["a","b"], 34 ["c","d"] 35 ] 36 37 data_source = data.amazon-ami.test.string 38 39 nested { 40 string = "string" 41 int = 42 42 int64 = 43 43 bool = true 44 trilean = true 45 duration = "10s" 46 map_string_string = { 47 a = "b" 48 c = "d" 49 } 50 slice_string = [ 51 "a", 52 "b", 53 "c", 54 ] 55 slice_slice_string = [ 56 ["a","b"], 57 ["c","d"] 58 ] 59 data_source = data.amazon-ami.test.string 60 } 61 62 nested_slice { 63 string = "string" 64 int = 42 65 int64 = 43 66 bool = true 67 trilean = true 68 duration = "10s" 69 map_string_string = { 70 a = "b" 71 c = "d" 72 } 73 slice_string = [ 74 "a", 75 "b", 76 "c", 77 ] 78 slice_slice_string = [ 79 ["a","b"], 80 ["c","d"] 81 ] 82 data_source = data.amazon-ami.test.string 83 } 84 85 nested_slice { 86 string = "string" 87 int = 42 88 int64 = 43 89 bool = true 90 trilean = true 91 duration = "10s" 92 map_string_string = { 93 a = "b" 94 c = "d" 95 } 96 slice_string = [ 97 "a", 98 "b", 99 "c", 100 ] 101 slice_slice_string = [ 102 ["a","b"], 103 ["c","d"] 104 ] 105 data_source = data.amazon-ami.test.string 106 } 107 }