terraform/configs/testdata/error-files
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
..
destroy-provisioners.tf convert destroy provisioner warnings to errors 2020-02-13 15:42:10 -05:00
ignore_changes.tf Upgrade ignore_changes wildcard from warning to error 2021-02-19 10:34:20 -05:00
invalid_language_edition.tf configs: Accept and minimally validate a "language" argument 2021-02-26 11:43:32 -08:00
provider-source-prefix.tf initial support for parsing configuration_aliases 2021-02-09 08:38:30 -05:00
required-providers-toplevel.tf configs: Hint for a misplaced top-level required_providers block 2020-04-06 09:24:23 -07:00
unsupported_language_edition.tf configs: Accept and minimally validate a "language" argument 2021-02-26 11:43:32 -08:00
variable_type_quoted.tf Upgrade to quoted keywords to error 2021-02-21 20:27:20 -05:00
vendor_provisioners.tf Remove vendor provisioners and add fmt Make target 2020-11-17 11:22:03 -05:00