{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/9098","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/9098/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/9098/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/9098/events","html_url":"https://github.com/hashicorp/terraform/issues/9098","id":179698071,"number":9098,"title":"[AWS] Pass tags to module creating an ASG ","user":{"login":"mcinteer","id":2257651,"avatar_url":"https://avatars.githubusercontent.com/u/2257651?v=3","gravatar_id":"","url":"https://api.github.com/users/mcinteer","html_url":"https://github.com/mcinteer","followers_url":"https://api.github.com/users/mcinteer/followers","following_url":"https://api.github.com/users/mcinteer/following{/other_user}","gists_url":"https://api.github.com/users/mcinteer/gists{/gist_id}","starred_url":"https://api.github.com/users/mcinteer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcinteer/subscriptions","organizations_url":"https://api.github.com/users/mcinteer/orgs","repos_url":"https://api.github.com/users/mcinteer/repos","events_url":"https://api.github.com/users/mcinteer/events{/privacy}","received_events_url":"https://api.github.com/users/mcinteer/received_events","type":"User","site_admin":false},"labels":[{"id":85946959,"url":"https://api.github.com/repos/hashicorp/terraform/labels/enhancement","name":"enhancement","color":"d4c5f9","default":true},{"id":127939518,"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/aws","name":"provider/aws","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-28T07:21:03Z","updated_at":"2016-12-01T16:16:13Z","closed_at":null,"body":"Hi there,\n### Terraform Version\n\n```\n$ terraform -v\nTerraform v0.7.4\n```\n### Affected Resource(s)\n\nPlease list the resources as a list, for example:\n- aws_autoscaling_group\n### Terraform Configuration Files\n\nThis is an ASG defined in a module with some default tags:\n\n``` hcl\nresource \"aws_autoscaling_group\" \"asg\" {\n  name = \"${var.env}-${var.cell}-${var.app}\"\n  launch_configuration = \"${aws_launch_configuration.lc.name}\"\n  .\n  .\n  .\n  tag {\n    key = \"Name\"\n    value = \"${var.env}-${var.app}\"\n    propagate_at_launch = true\n  }\n\n  tag {\n    key = \"app\"\n    value = \"${var.env}-${var.app}\"\n    propagate_at_launch = true\n  }\n.\n.\n.\n```\n### Info\n\nI'd like to be able to pass this module some extra tags to add to the ASG. for example if I have a couple of different stacks using this module and they both require these default tags but then one of them requires some additional tags. Is this available already? I've done a fair amount of googling on this but cannot find anything on it. \n\nIt seems that because each tag is added individually rather than a list of tags that I can't add to the list. Is there a workaround for this or can we get it implemented?\n\nThanks,\nRyan\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/264217033","html_url":"https://github.com/hashicorp/terraform/issues/9098#issuecomment-264217033","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/9098","id":264217033,"user":{"login":"morkot","id":2598572,"avatar_url":"https://avatars.githubusercontent.com/u/2598572?v=3","gravatar_id":"","url":"https://api.github.com/users/morkot","html_url":"https://github.com/morkot","followers_url":"https://api.github.com/users/morkot/followers","following_url":"https://api.github.com/users/morkot/following{/other_user}","gists_url":"https://api.github.com/users/morkot/gists{/gist_id}","starred_url":"https://api.github.com/users/morkot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morkot/subscriptions","organizations_url":"https://api.github.com/users/morkot/orgs","repos_url":"https://api.github.com/users/morkot/repos","events_url":"https://api.github.com/users/morkot/events{/privacy}","received_events_url":"https://api.github.com/users/morkot/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T16:16:13Z","updated_at":"2016-12-01T16:16:13Z","body":"Or even simpler: \r\nsplit those two tags to two different arguments, like:\r\n```go\r\nresource \"aws_autoscaling_group\" \"bar\" {\r\n...\r\n    tags_propagated = {\r\n      Name = \"my-name\"\r\n      AnotherTagForInstances = \"foo\"\r\n    }\r\n\r\n    tags = {\r\n      MyTagForASGNotPropagted = \"baz\"\r\n    }\r\n}\r\n```"}}
{"actor":{"display_login":"morkot"}}