{"action":"closed","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/2274","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/2274/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/2274/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/2274/events","html_url":"https://github.com/hashicorp/terraform/issues/2274","id":86272162,"number":2274,"title":"Implement AWS AddUserToGroup as top-level resource","user":{"login":"GrayCoder","id":837737,"avatar_url":"https://avatars.githubusercontent.com/u/837737?v=3","gravatar_id":"","url":"https://api.github.com/users/GrayCoder","html_url":"https://github.com/GrayCoder","followers_url":"https://api.github.com/users/GrayCoder/followers","following_url":"https://api.github.com/users/GrayCoder/following{/other_user}","gists_url":"https://api.github.com/users/GrayCoder/gists{/gist_id}","starred_url":"https://api.github.com/users/GrayCoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrayCoder/subscriptions","organizations_url":"https://api.github.com/users/GrayCoder/orgs","repos_url":"https://api.github.com/users/GrayCoder/repos","events_url":"https://api.github.com/users/GrayCoder/events{/privacy}","received_events_url":"https://api.github.com/users/GrayCoder/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/enhancement","name":"enhancement","color":"d4c5f9"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/aws","name":"provider/aws","color":"bfdadc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-08T17:51:08Z","updated_at":"2015-06-08T20:11:53Z","closed_at":"2015-06-08T20:11:53Z","body":"Currently, [this functionality](https://docs.aws.amazon.com/IAM/latest/APIReference/API_AddUserToGroup.html) isn't supported by terraform and I'd like to figure out the best way to implement it. @ctiwald and I need this functionality in order to port our current configuration to terraform tf files.\r\n\r\nIt would seem that, based on issues like #2197 and #1419, it's best to implement this as a top level resource.\r\n\r\nProposed format:\r\n```\r\nresource \"aws_iam_group_association\" \"dev\" {\r\n    name = \"dev\"\r\n    users = [\r\n        \"${aws_iam_user.dev1.name}\",\r\n        \"${aws_iam_user.dev2.name}\",\r\n        ...\r\n    ]\r\n    group = \"${aws_iam_group.dev.name}\"\r\n}\r\n```\r\n\r\nwith files:\r\n`builtin/providers/aws/resource_aws_iam_group_association.go`\r\n`builtin/providers/aws/resource_aws_iam_group_association_test.go`\r\n\r\nDoes this sound acceptable or is there another preferred method/syntax?"}}