terraform/configs/testdata
Martin Atkins b5adc33075 configs: Accept and minimally validate a "language" argument
We expect that in order to continue to evolve the language without
breaking existing modules we will at some point need to have a way to mark
when a particular module is expecting a newer interpretation of the
language.

Although it's too early to do any deep preparation for that, this commit
aims to proactively reserve an argument named "language" inside
"terraform" blocks, which currently only accepts the keyword TF2021 that
is intended to represent "the edition of the Terraform language as defined
in 2021".

That argument also defaults to TF2021 if not set, so in practice there's
no real reason to set this today, but this minimal validation today is
intended to give better feedback to users of older Terraform versions in
the event that we introduce a new language edition later and they try to
use an module incompatible with their Terraform version.
2021-02-26 11:43:32 -08:00
..
config-build
config-diagnostics add provider validation 2021-02-11 10:22:18 -05:00
dir-empty move IsEmptyDir to configs package 2019-07-18 13:07:10 -04:00
error-files configs: Accept and minimally validate a "language" argument 2021-02-26 11:43:32 -08:00
experiments experiments: a mechanism for opt-in experimental language features 2019-12-10 09:27:05 -08:00
invalid-files Remove sensitive_variables experiment 2020-10-08 11:22:20 -04:00
invalid-modules configs: Experimental support for optional object type attributes 2020-10-12 10:12:28 -07:00
nested-backend-warning configs: Emit a warning for backends in nested modules 2020-11-18 08:20:25 -08:00
nested-errors ensure we record diagnostics from nested modules 2019-07-16 19:06:48 -04:00
provider-reqs configs: Fix nested provider requirements bug 2020-06-22 12:16:22 -04:00
providers-explicit-fqn addrs: ImpliedProviderForUnqualifiedType function 2020-04-06 09:24:23 -07:00
valid-files configs: Accept and minimally validate a "language" argument 2021-02-26 11:43:32 -08:00
valid-modules old comment 2021-02-11 17:39:51 -05:00
warning-files Upgrade to quoted keywords to error 2021-02-21 20:27:20 -05:00