{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4703","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4703/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4703/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4703/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/4703","id":175043662,"number":4703,"title":"Update IAM username in AWS succeed however playbook returns with an error","user":{"login":"salfand","id":16691874,"avatar_url":"https://avatars.githubusercontent.com/u/16691874?v=3","gravatar_id":"","url":"https://api.github.com/users/salfand","html_url":"https://github.com/salfand","followers_url":"https://api.github.com/users/salfand/followers","following_url":"https://api.github.com/users/salfand/following{/other_user}","gists_url":"https://api.github.com/users/salfand/gists{/gist_id}","starred_url":"https://api.github.com/users/salfand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salfand/subscriptions","organizations_url":"https://api.github.com/users/salfand/orgs","repos_url":"https://api.github.com/users/salfand/repos","events_url":"https://api.github.com/users/salfand/events{/privacy}","received_events_url":"https://api.github.com/users/salfand/received_events","type":"User","site_admin":false},"labels":[{"id":437720344,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/affects_2.1","name":"affects_2.1","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":6,"created_at":"2016-09-05T10:35:43Z","updated_at":"2016-11-22T09:43:56Z","closed_at":null,"body":"<!--- Verify first that your issue/request is not already reported in GitHub -->\n##### ISSUE TYPE\n\n<!--- Pick one below and delete the rest: -->\n- Bug Report\n##### COMPONENT NAME\n\n<!--- Name of the plugin/module/task -->\n\nIAM\n##### ANSIBLE VERSION\n\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\n\n```\nansible 2.1.0.0\n  config file = /etc/ansible/ansible.cfg\n  configured module search path = Default w/o overrides\n```\n##### CONFIGURATION\n\n<!---\nMention any settings you have changed/added/removed in ansible.cfg\n(or using the ANSIBLE_* environment variables).\n-->\n##### OS / ENVIRONMENT\n\n<!---\nMention the OS you are running Ansible from, and the OS you are\nmanaging, or say “N/A” for anything that is not platform-specific.\n-->\n\nCentOS Linux release 7.2.1511 (Core)\n##### SUMMARY\n\n<!--- Explain the problem briefly -->\n\nRuns the playbook in order to rename the IAM user in AWS. The IAM user actually renamed in AWS But the playbook returns with an error.\n##### STEPS TO REPRODUCE\n\n<!---\nFor bugs, show exactly how to reproduce the problem.\nFor new features, show how the feature would be used.\n-->\n1. Create IAM user in AWS account\n2. Run the playbook in order to rename the IAM user created in Step-1.\n   ansible-playbook update_iam.yml --extra-vars \"AWSAccessKey=XXXXXXXX AWSSecretKey=XXXXXX old_name=David new_name=david123\"\n\n```\n\n---\n- name: Create OCCM Server\n  hosts: 127.0.0.1\n  connection: local\n  gather_facts: False\n  tasks:\n# Create boto config file\n    - name: Create boto config File\n      blockinfile:\n        create: yes\n        dest: /etc/boto.cfg\n        block: |\n          [Credentials]\n          aws_access_key_id = {{ AWSAccessKey }}\n          aws_secret_access_key = {{ AWSSecretKey }}\n    - name: Update IAM USerName\n      local_action:\n        module: iam\n        iam_type: user\n        name: \"{{ old_name }}\"\n        new_name: \"{{ new_name }}\"\n        state: update\n```\n\n<!--- You can also paste gist.github.com links for larger files -->\n##### EXPECTED RESULTS\n\n<!--- What did you expect to happen when running the steps above? -->\n\nI expect to have success in the playbook result without any error as the IAM username indeed updated.\n##### ACTUAL RESULTS\n\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\n\n<!--- Paste verbatim command output between quotes below -->\n\n```\nTASK [Update IAM USerName] *****************************************************\nfatal: [127.0.0.1 -> localhost]: FAILED! => {\"changed\": true, \"failed\": true, \"msg\": \"BotoServerError: 404 Not Found\\n<ErrorResponse xmlns=\\\"https://iam.amazonaws.com/doc/2010-05-08/\\\">\\n  <Error>\\n    <Type>Sender</Type>\\n    <Code>NoSuchEntity</Code>\\n    <Message>The user with name Yaron cannot be found.</Message>\\n  </Error>\\n  <RequestId>ac913251-7330-11e6-a898-cf1ede838a3b</RequestId>\\n</ErrorResponse>\\n\"}\n```\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/262193431","html_url":"https://github.com/ansible/ansible-modules-core/issues/4703#issuecomment-262193431","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4703","id":262193431,"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-22T09:43:56Z","updated_at":"2016-11-22T09:43:56Z","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"}}