{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/13224","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/13224/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/13224/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/13224/events","html_url":"https://github.com/hashicorp/terraform/issues/13224","id":218322132,"number":13224,"title":"aws_alb_target_group_attachment errors out when multiple instance id's used","user":{"login":"sbatchu0108","id":10048340,"avatar_url":"https://avatars2.githubusercontent.com/u/10048340?v=3","gravatar_id":"","url":"https://api.github.com/users/sbatchu0108","html_url":"https://github.com/sbatchu0108","followers_url":"https://api.github.com/users/sbatchu0108/followers","following_url":"https://api.github.com/users/sbatchu0108/following{/other_user}","gists_url":"https://api.github.com/users/sbatchu0108/gists{/gist_id}","starred_url":"https://api.github.com/users/sbatchu0108/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbatchu0108/subscriptions","organizations_url":"https://api.github.com/users/sbatchu0108/orgs","repos_url":"https://api.github.com/users/sbatchu0108/repos","events_url":"https://api.github.com/users/sbatchu0108/events{/privacy}","received_events_url":"https://api.github.com/users/sbatchu0108/received_events","type":"User","site_admin":false},"labels":[{"id":85946957,"url":"https://api.github.com/repos/hashicorp/terraform/labels/bug","name":"bug","color":"f7c6c7","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":1,"created_at":"2017-03-30T20:43:38Z","updated_at":"2017-04-04T16:38:48Z","closed_at":null,"body":"Hi there,\r\n\r\n### Terraform Version\r\n`Terraform v0.8.8`\r\n\r\n### Affected Resource(s)\r\n- aws_alb_target_group_attachment\r\n\r\n### Debug Output\r\n1 error(s) occurred:\r\n\r\n* aws_alb_target_group_attachment.xxxx-xxx: Error registering targets with target group: ValidationError: An instance ID must be specified\r\n\tstatus code: 400, request id: 6916e0d0-1585-11e7-a88b-a33f890c099b\r\n\r\nTerraform does not automatically rollback in the face of errors.\r\nInstead, your Terraform state file has been partially updated with\r\nany resources that successfully completed. Please address the error\r\nabove and apply again to incrementally change your infrastructure.\r\n\r\n### Expected Behavior\r\nAlb target group should be attached with the newly created instances.\r\n\r\n### Actual Behavior\r\nUnable to register instances:\r\nmodule.vault-elb.aws_alb_target_group_attachment.hcvault-dev: Creating...\r\n  port:             \"\" => \"80\"\r\n  target_group_arn: \"\" => \"arn:aws:elasticloadbalancing:us-east-1:xxxxxx:targetgroup/xxxx-xxxx/acxxxxxxx\"\r\n  target_id:        \"\" => \"<computed>\"\r\nmodule.consul-agent.null_resource.dummy_dependency: Creating...\r\n  triggers.%:             \"\" => \"1\"\r\n  triggers.dependency_id: \"\" => \"i-xxxxxx,i-xxxxxx,i-xxxxx\"\r\nmodule.consul-agent.null_resource.dummy_dependency: Creation complete\r\n ValidationError: An instance ID must be specified\r\n\tstatus code: 400, request id: 6916e0d0-1585-11e7-a88b-a33f890c099b\r\n\r\n### Steps to Reproduce\r\nPlease list the steps required to reproduce the issue, for example:\r\n1. Create Main.tf with 3 modules sections where first module section creates consul server based on the count.\r\n2. Second module section depends on the first module to be executed then creates the consul agent servers based on the count.\r\n3. Third module depends on second module output and then creates alb and targetgroup which attaches the instance id's from the second module output to the target groups.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/291558682","html_url":"https://github.com/hashicorp/terraform/issues/13224#issuecomment-291558682","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/13224","id":291558682,"user":{"login":"grubernaut","id":3082319,"avatar_url":"https://avatars1.githubusercontent.com/u/3082319?v=3","gravatar_id":"","url":"https://api.github.com/users/grubernaut","html_url":"https://github.com/grubernaut","followers_url":"https://api.github.com/users/grubernaut/followers","following_url":"https://api.github.com/users/grubernaut/following{/other_user}","gists_url":"https://api.github.com/users/grubernaut/gists{/gist_id}","starred_url":"https://api.github.com/users/grubernaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grubernaut/subscriptions","organizations_url":"https://api.github.com/users/grubernaut/orgs","repos_url":"https://api.github.com/users/grubernaut/repos","events_url":"https://api.github.com/users/grubernaut/events{/privacy}","received_events_url":"https://api.github.com/users/grubernaut/received_events","type":"User","site_admin":false},"created_at":"2017-04-04T16:38:48Z","updated_at":"2017-04-04T16:38:48Z","body":"Hi @sbatchu0108, thanks for the issue. \r\n\r\nAs far as I know, nobody internally has started working on this issue, and we don't have an ETA.\r\n\r\nAs maintainers we tag opened issues so they are easier to find in the future, but that doesn't necessarily mean work has begun on fixing the issue. While it is not our intention to leave issues open for an extended period of time, there are only a few maintainers working on the Terraform project, we currently have over 1700 open issues to tackle, and can't work on all of them at once.  We would gladly accept a PR for this issue in the meantime, but definitely appreciate patience while we work on this. Thanks! ❤️ "}}
{"actor":{"display_login":"grubernaut"}}