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