github.com/hugorut/terraform@v1.1.3/website/docs/language/functions/join.mdx (about) 1 --- 2 page_title: join - Functions - Configuration Language 3 description: |- 4 The join function produces a string by concatenating the elements of a list 5 with a given delimiter. 6 --- 7 8 # `join` Function 9 10 `join` produces a string by concatenating together all elements of a given 11 list of strings with the given delimiter. 12 13 ```hcl 14 join(separator, list) 15 ``` 16 17 ## Examples 18 19 ``` 20 > join(", ", ["foo", "bar", "baz"]) 21 foo, bar, baz 22 > join(", ", ["foo"]) 23 foo 24 ``` 25 26 ## Related Functions 27 28 * [`split`](/language/functions/split) performs the opposite operation: producing a list 29 by separating a single string using a given delimiter.