-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
module invocations should support count #1471
Comments
I think I have a use case for this as well: Given three AWS instances, I want to create a round-robin DNS record at DNSMadeEasy. Current implementation (using ELB) is:
What I'd like to do is use I believe this is currently not possible, and I also believe that this feature request would solve my problem. |
I spoke too soon, my use case is solved using
|
I am also hitting the need for count support in modules support. The use case is for using the docker provider to launch swarm agents across a list of nodes. I have put the swarm agent setup in a module to allow for being able to dynamically set up the docker provider based on a list of nodes.
NOTE: I've reposted this here as a similar issue on this topic was closed, and figured it would be more useful to attach to an open issue. |
My use case is a module with 8 resources used for configuring infrastructure related to applications. For each application I'd like to just adjust things in a tfvars file, and not have to copy/pasta a module call. |
Hey Friends – I'm closing this as a duplicate of #953 |
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. |
I tried to do something like nested loops of sorts by writing code that looks like:
This results in a crash:
It would be nice to be able to call a module multiple times, passing different arguments each time.
I think I can get around this with judicious use of count=${inner * outer} and modulo and division, but it feels a bit dirty.
The text was updated successfully, but these errors were encountered: