terraform/website/docs
Martin Atkins ae3c0c6a4a lang/funcs: Remove the deprecated "list" and "map" functions
Prior to Terraform 0.12 these two functions were the only way to construct
literal lists and maps (respectively) in HIL expressions. Terraform 0.12,
by switching to HCL 2, introduced first-class syntax for constructing
tuple and object values, which can then be converted into list and map
values using the tolist and tomap type conversion functions.

We marked both of these functions as deprecated in the Terraform v0.12
release and have since then mentioned in the docs that they will be
removed in a future Terraform version. The "terraform 0.12upgrade" tool
from Terraform v0.12 also included a rule to automatically rewrite uses
of these functions into equivalent new syntax.

The main motivation for removing these now is just to get this change made
prior to Terraform 1.0. as we'll be doing with various other deprecations.
However, a specific reason for these two functions in particular is that
their existence is what caused us to invent the idea of a "type expression"
as a distinct kind of expression in Terraform v0.12, and so removing them
now would allow potentially  unifying type expressions with value
expressions in a future release.

We do not have any current specific plans to make that change, but one
potential motivation for doing so would be to take another attempt at a
generalized "convert" function which takes a type as one of its arguments.
Our previous attempt to implement such a function was foiled by the fact
that Terraform's expression validator doesn't have any way to know to
treat one argument of a particular function as special, and so it was
generating incorrect error messages. We won't necessarily do that, but
having these "list" and "map" functions out of the way leaves the option
open.
2020-11-04 17:05:59 -08:00
..
backends backend: remove deprecated atlas backend 2020-10-26 14:05:18 -04:00
commands website: Don't claim that things are "very easy" 2020-10-26 10:02:38 -07:00
configuration lang/funcs: Remove the deprecated "list" and "map" functions 2020-11-04 17:05:59 -08:00
configuration-0-11 website: Remove links to the getting started guide's old location 2020-03-18 14:20:03 -07:00
import website: Update all Learn crosslinks (#26442) 2020-10-02 11:02:59 -07:00
internals website: Update module-registry-protocol.html.md (#26639) 2020-10-28 09:09:52 -04:00
modules website: Don't claim that things are "very easy" 2020-10-26 10:02:38 -07:00
plugins website: Don't claim that things are "very easy" 2020-10-26 10:02:38 -07:00
providers Fixed config argument on example (#26304) 2020-10-22 14:08:25 -03:00
provisioners Tool-specific provisioner docs change to red notice box (#26681) 2020-10-22 15:50:46 -03:00
registry website: Don't claim that things are "very easy" 2020-10-26 10:02:38 -07:00
state website: fixed spelling error (#26758) 2020-11-02 11:15:44 -08:00
cli-index.html.md website: Update all Learn crosslinks (#26442) 2020-10-02 11:02:59 -07:00