-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"count" for provider configurations #9448
Comments
Looks like there's an issue covering this as well - #11578 |
i can interpolate normal variables into the provider blocks but not local variables. this would let me set up a map so i can use the right profile for the particular environment. as a workaround, i am doing local computation in root module and passing into the module who has its own provider because i can't set up the provider like that and pass it in. actually no, that's not working either, even with refresh=false. |
I would also like count support for providers, in order to create a resource in multiple regions. Note that there is a feature request to add count support for modules, which would provide a different way to achieve the same result. |
That also requires some support for resources
Currently fails with Relates to #16967 |
Is there any known workaround here? |
sam issue I'm facing |
Would that be technically possible to implement this in HCL2 ? |
Need this too. Is this being addressed? |
Having |
Hi @pmoust, and everyone else! Thanks for proposing this and for the ongoing discussion. After some consideration of the various parts, I think this proposal has the same underlying use-case as #24476. Although that one is newer, there is lots of discussion there about different use-cases and proposals, and so I'm going to close this one to consolidate into that one. I'd also like to draw your attention to the comment I left there about the state of things right now and the low likelihood of addressing these use-cases in the very near future. Thanks again for opening this, and I'm sorry for being the bearer of some sub-awesome news today. |
Good detailed answer/comment @apparentlymart. Even though it is not the answer we hoped for it is understandable, thank you |
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. |
More of a feature request.
Terraform Version
Terraform v0.7.5
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
I would love to have providers defined as the above example HCL. Docs implicitly suggest that one needs to repeat the provider configuration.
Expected behavior would be to create a bucket in 'ap-northeast-1'
Actual Behavior
root module error.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: