mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-01-14 14:02:13 -05:00
This also renames some of the existing function pages whose source filenames were not matching the usual naming scheme (.html.md).
856 B
856 B
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| functions | map function | docs-funcs-collection-map | The map function constructs a map from some given elements. |
map Function
~> This function is deprecated. From Terraform v0.12, the Terraform
language has built-in syntax for creating maps using the { and }
delimiters. Use the built-in syntax instead. The map function will be
removed in a future version of Terraform.
map takes an even number of arguments and returns a map whose elements
are constructed from consecutive pairs of arguments.
Examples
> map("a", "b", "c", "d")
{
"a" = "b"
"c" = "d"
]
Do not use the above form in Terraform v0.12 or above. Instead, use the built-in map construction syntax, which achieves the same result:
> {"a" = "b", "c" = "d"}
{
"a" = "b"
"c" = "d"
]