terraform/internal/command/testdata/invalid-backend-configuration/missing-required-attr/main.tf
Sarah French 694f746748
validate: Add checking the backend block to the validate command (#38021)
* feat: Make validate command detect when an unknown backend type is in use.

* feat: Make validate command detect when the backend configuration doesn't match the schema.

* fix: Stop suppressing the Required:true parts of the backend schema when validating backend blocks

* test: Add test showing validation fails when a required attribute is missing from a backend's config
2026-02-13 15:31:57 +00:00

9 lines
278 B
HCL

terraform {
backend "gcs" {
# Missing required attribute "bucket"
#
# Everything else is missing as well, but this
# test fixture is intended for use testing the validate command,
# which is offline only. So lack of credentials etc is not a problem.
}
}