You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a wrong error message. Module a does not have a provider, and module b doesn't have for_each, count or depends_on. This worked correctly with Terraform 1.1.9.
$ terraform init
Initializing modules...
There are some problems with the configuration, described below.
The Terraform configuration must be valid before initialization so that
Terraform can determine which modules and providers need to be installed.
╷
│ Error: Module is incompatible with count, for_each, and depends_on
│
│ on main.tf line 11, in module "a":
│ 11: count = 1
│
│ The module at module.b is a legacy module which contains its own local provider configurations, and so calls to it may not use the count, for_each, or depends_on arguments.
│
│ If you also control the module "./b", consider updating this module to instead expect provider configurations to be passed by its caller.
╵
Steps to Reproduce
terraform init
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Version
Terraform Configuration Files
a/a.tf:
b/b.tf:
main.tf:
Debug Output
https://gist.github.com/orgads/cd268112f253363f9f58f19dad306111
Expected Behavior
It should work
Actual Behavior
I'm getting a wrong error message. Module
a
does not have a provider, and moduleb
doesn't havefor_each
,count
ordepends_on
. This worked correctly with Terraform 1.1.9.Steps to Reproduce
terraform init
The text was updated successfully, but these errors were encountered: