{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2192","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2192/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2192/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2192/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/2192","id":109536054,"number":2192,"title":"IAM module can get into weird broken states for IAM roles/instance profiles","user":{"login":"copumpkin","id":2623,"avatar_url":"https://avatars.githubusercontent.com/u/2623?v=3","gravatar_id":"","url":"https://api.github.com/users/copumpkin","html_url":"https://github.com/copumpkin","followers_url":"https://api.github.com/users/copumpkin/followers","following_url":"https://api.github.com/users/copumpkin/following{/other_user}","gists_url":"https://api.github.com/users/copumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/copumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copumpkin/subscriptions","organizations_url":"https://api.github.com/users/copumpkin/orgs","repos_url":"https://api.github.com/users/copumpkin/repos","events_url":"https://api.github.com/users/copumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/copumpkin/received_events","type":"User","site_admin":false},"labels":[{"id":454885373,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/affects_2.3","name":"affects_2.3","color":"5319e7","default":false},{"id":382351767,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/aws","name":"aws","color":"c5def5","default":false},{"id":132571937,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bug_report","name":"bug_report","color":"fbca04","default":false},{"id":132897218,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/cloud","name":"cloud","color":"c7def8","default":false},{"id":414073372,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/waiting_on_maintainer","name":"waiting_on_maintainer","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2015-10-02T17:33:30Z","updated_at":"2016-11-19T10:03:29Z","closed_at":null,"body":"Reproduction 1:\n1. Use the Ansible IAM module to create an IAM role. This will create an IAM role and instance profile for you.\n2. Use the AWS API to delete just the instance profile.\n3. Now, reconverging the IAM role will not recreate the instance profile for you, and you need to make it by hand.\n\nThis arises because [this code](https://github.com/ansible/ansible-modules-core/blob/devel/cloud/amazon/iam.py#L437-L444) assumes that if the role exists, it doesn't need to touch the instance profile.\n\nReproduction 2:\n1. Use the Ansible IAM module to create an IAM role. This will create an IAM role and instance profile for you.\n2. Use the AWS API to delete just the role, but leave the instance profile in place. The instance profile will not be attached to any roles after this.\n3. Now, reconverging the IAM role will create a new role for you, but it will not attach that role to the existing instance profile.\n\nThe same [block of code](https://github.com/ansible/ansible-modules-core/blob/devel/cloud/amazon/iam.py#L437-L444) assumes that if the instance profile exists (by name), that it's in a good state.\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/261704846","html_url":"https://github.com/ansible/ansible-modules-core/issues/2192#issuecomment-261704846","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2192","id":261704846,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars.githubusercontent.com/u/6585283?v=3","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2016-11-19T10:03:28Z","updated_at":"2016-11-19T10:03:28Z","body":"@ansible, ping. This issue is still waiting on your response.\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: issue_renotify_maintainer --->"}}
{"actor":{"display_login":"ansibot"}}