{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/845","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/845/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/845/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/845/events","html_url":"https://github.com/hashicorp/terraform/issues/845","id":54994912,"number":845,"title":"Can't output multivar from module","user":{"login":"publysher","id":922922,"avatar_url":"https://avatars.githubusercontent.com/u/922922?v=3","gravatar_id":"","url":"https://api.github.com/users/publysher","html_url":"https://github.com/publysher","followers_url":"https://api.github.com/users/publysher/followers","following_url":"https://api.github.com/users/publysher/following{/other_user}","gists_url":"https://api.github.com/users/publysher/gists{/gist_id}","starred_url":"https://api.github.com/users/publysher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/publysher/subscriptions","organizations_url":"https://api.github.com/users/publysher/orgs","repos_url":"https://api.github.com/users/publysher/repos","events_url":"https://api.github.com/users/publysher/events{/privacy}","received_events_url":"https://api.github.com/users/publysher/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"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-21T09:20:17Z","updated_at":"2015-02-20T21:45:19Z","closed_at":"2015-02-20T21:45:19Z","body":"In my module, I'm trying to create multiple resources using the `count` parameter. However, it seems to be impossible to output details of the resources I've created. \r\n\r\nFor example, in my module I have something like:\r\n\r\n```\r\nresource \"digitalocean_droplet\" \"node\" {\r\n    count = \"${var.servers}\"\r\n    ....\r\n}\r\n```\r\n\r\nI've tried various ways to export the IP addresses of these nodes:\r\n\r\n```\r\noutput \"ip\" {\r\n    value = \"${digitalocean_droplet.node.ipv4_address}\"\r\n}\r\n```\r\n\r\nresults in\r\n\r\n```\r\nResource 'digitalocean_droplet.node' not found for variable 'digitalocean_droplet.node.ipv4_address'\r\n```\r\n\r\n`value = \"${digitalocean_droplet.node.*.ipv4_address}\"` results in `output 'ipv4_address': multi-variable must be in a slice`.\r\n\r\n`value = [\"${digitalocean_droplet.node.*.ipv4_address}\"]` parses OK, but results in a string containing only the first ip address.\r\n\r\n`value=\"${join(\",\", digitalocean_droplet.node.*.ipv4_address)}\"` results in a comma-separated list containing all ip addresses, but since there is no `split` function, I have no way to extract individual IP addresses from this output in a later stage.\r\n\r\nThe documentation does not seem to address this issue. I'm open for suggestions on how to do this :)"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/75324801","html_url":"https://github.com/hashicorp/terraform/issues/845#issuecomment-75324801","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/845","id":75324801,"user":{"login":"mitchellh","id":1299,"avatar_url":"https://avatars.githubusercontent.com/u/1299?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchellh","html_url":"https://github.com/mitchellh","followers_url":"https://api.github.com/users/mitchellh/followers","following_url":"https://api.github.com/users/mitchellh/following{/other_user}","gists_url":"https://api.github.com/users/mitchellh/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchellh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchellh/subscriptions","organizations_url":"https://api.github.com/users/mitchellh/orgs","repos_url":"https://api.github.com/users/mitchellh/repos","events_url":"https://api.github.com/users/mitchellh/events{/privacy}","received_events_url":"https://api.github.com/users/mitchellh/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T21:45:19Z","updated_at":"2015-02-20T21:45:19Z","body":"Fixed by #885"}}