{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/953","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/953/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/953/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/953/events","html_url":"https://github.com/hashicorp/terraform/issues/953","id":56979323,"number":953,"title":"Support the count parameter for modules","user":{"login":"epiloque","id":189198,"avatar_url":"https://avatars.githubusercontent.com/u/189198?v=3","gravatar_id":"","url":"https://api.github.com/users/epiloque","html_url":"https://github.com/epiloque","followers_url":"https://api.github.com/users/epiloque/followers","following_url":"https://api.github.com/users/epiloque/following{/other_user}","gists_url":"https://api.github.com/users/epiloque/gists{/gist_id}","starred_url":"https://api.github.com/users/epiloque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epiloque/subscriptions","organizations_url":"https://api.github.com/users/epiloque/orgs","repos_url":"https://api.github.com/users/epiloque/repos","events_url":"https://api.github.com/users/epiloque/events{/privacy}","received_events_url":"https://api.github.com/users/epiloque/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/core","name":"core","color":"cccccc"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/enhancement","name":"enhancement","color":"d4c5f9"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/waiting-response","name":"waiting-response","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-09T01:41:55Z","updated_at":"2015-05-15T17:03:46Z","closed_at":"2015-03-02T17:49:38Z","body":"First of all I wanted to thank all the contributors and especially Hashicorp for doing a great work. Thank you!\r\n\r\nCurrently the terraform modules do not support the count parameter. It would be a nice addition, encouraging a more DRY approach to writing modules.\r\n\r\n    Errors:\r\n       * module root: module somemodule: count is not a valid parameter\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/102459474","html_url":"https://github.com/hashicorp/terraform/issues/953#issuecomment-102459474","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/953","id":102459474,"user":{"login":"jwthomp","id":367396,"avatar_url":"https://avatars.githubusercontent.com/u/367396?v=3","gravatar_id":"","url":"https://api.github.com/users/jwthomp","html_url":"https://github.com/jwthomp","followers_url":"https://api.github.com/users/jwthomp/followers","following_url":"https://api.github.com/users/jwthomp/following{/other_user}","gists_url":"https://api.github.com/users/jwthomp/gists{/gist_id}","starred_url":"https://api.github.com/users/jwthomp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwthomp/subscriptions","organizations_url":"https://api.github.com/users/jwthomp/orgs","repos_url":"https://api.github.com/users/jwthomp/repos","events_url":"https://api.github.com/users/jwthomp/events{/privacy}","received_events_url":"https://api.github.com/users/jwthomp/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T17:03:46Z","updated_at":"2015-05-15T17:03:46Z","body":"I am also hitting this as an issue. 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.\r\n\r\n```\r\nmodule \"agent\" {\r\n  source           = \"./agent\"\r\n  docker_ip        = \"${lookup(var.docker_ip, count.index)}\"\r\n  docker_port      = \"${lookup(var.docker_port, count.index)}\"\r\n  swarm_version    = \"${var.swarm_version}\"\r\n  swarm_token      = \"${var.swarm_token}\"\r\n  count            = 3\r\n}\r\n```"}}