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
The module is unable to support for_each since it contains provider configuration:
Module "foo" cannot be used with for_each because it contains a
nested provider configuration for"aws.requester", at
.terraform/modules/foo/requester.tf:60,10-15.
Expected Behavior
The module should support for_each loops.
Additional Context
I believe passing the providers into the module (instead of configuring the providers w/in the module) would do the trick. I labeled this as bug but it may be a feature request instead.
The text was updated successfully, but these errors were encountered:
I think this would be a good extension to this module. Since this would be a breaking change, we'd require a migration doc, updated examples, and move to the next major version of 1.x. We would also try to close as many open issues as possible with prs for that release.
I'd like to work on this when I find the time. Feel free to contribute the change too and we will review.
nitrocode
changed the title
Module does not support for_each
Module does not support for_each due to hard coded providers
Jun 18, 2022
Describe the Bug
The module is unable to support
for_each
since it contains provider configuration:Expected Behavior
The module should support
for_each
loops.Additional Context
I believe passing the providers into the module (instead of configuring the providers w/in the module) would do the trick. I labeled this as bug but it may be a feature request instead.
The text was updated successfully, but these errors were encountered: