terraform/website/docs/configuration/functions/concat.html.md

590 B

layout page_title sidebar_current description
functions concat - Functions - Configuration Language docs-funcs-collection-concat The concat function combines two or more lists into a single list.

concat Function

-> Note: This page is about Terraform 0.12 and later. For Terraform 0.11 and earlier, see 0.11 Configuration Language: Interpolation Syntax.

concat takes two or more lists and combines them into a single list.

Examples

> concat(["a", ""], ["b", "c"])
[
  "a",
  "",
  "b",
  "c",
]