mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-05-11 09:00:56 -04:00
* command/init: return an error with invalid -backend-config files The -backend-config flag expects a set of key-value pairs or a file containing key-value pairs. If the file instead contains a full backend configuration block, it was silently ignored. This commit adds a check for blocks in the file and returns an error if they are encountered. Fixes #24845 * emphasize backend configuration file in docs
8 lines
201 B
Plaintext
8 lines
201 B
Plaintext
// the -backend-config flag on init cannot be used to point to a "full" backend
|
|
// block, only key-value pairs (like terraform.tfvars)
|
|
terraform {
|
|
backend "local" {
|
|
path = "hello"
|
|
}
|
|
}
|