mirror of https://github.com/hashicorp/terraform
With provider dependencies now appearing inside a nested block, it seems likely that configuration examples showing dependencies out of context will sometimes mislead users into thinking that required_providers is toplevel. To give better feedback in that situation, we'll produce a specialized error in that case hinting the correct structure to the user.pull/24477/head
parent
297a3a5db9
commit
3e3d8f6764
@ -0,0 +1,9 @@
|
||||
# A top-level required_providers block is not valid, but we have a specialized
|
||||
# error for it to hint the user to move it into a terraform block.
|
||||
required_providers { # ERROR: Invalid required_providers block
|
||||
}
|
||||
|
||||
# This one is valid, and what the user should rewrite the above to be like.
|
||||
terraform {
|
||||
required_providers {}
|
||||
}
|
||||
Loading…
Reference in new issue