{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/9984","labels_url":"https://api.github.com/repos/ansible/ansible/issues/9984/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/9984/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/9984/events","html_url":"https://github.com/ansible/ansible/issues/9984","id":54080292,"number":9984,"title":"AWS credentials are not being used by ec2_tag","user":{"login":"ISF","id":240817,"avatar_url":"https://avatars.githubusercontent.com/u/240817?v=3","gravatar_id":"","url":"https://api.github.com/users/ISF","html_url":"https://github.com/ISF","followers_url":"https://api.github.com/users/ISF/followers","following_url":"https://api.github.com/users/ISF/following{/other_user}","gists_url":"https://api.github.com/users/ISF/gists{/gist_id}","starred_url":"https://api.github.com/users/ISF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ISF/subscriptions","organizations_url":"https://api.github.com/users/ISF/orgs","repos_url":"https://api.github.com/users/ISF/repos","events_url":"https://api.github.com/users/ISF/events{/privacy}","received_events_url":"https://api.github.com/users/ISF/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-12T17:15:13Z","updated_at":"2015-01-12T17:15:13Z","closed_at":null,"body":"The ec_tag module is failing everytime with the following error:\r\n\r\n```\r\nmsg: No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV4Handler'] Check your credentials\r\n```\r\n\r\nMinimum working example:\r\n\r\n```\r\n- name: Tag instances\r\n  local_action: ec2_tag resource=\"{{ ec2_id }}\" region=sa-east-1 state=present\r\n  args:\r\n    tags:\r\n      App: \"{{ App | mandatory }}\"\r\n      Environment: \"{{ Environment | mandatory }}\"\r\n      Role: \"{{ Role | mandatory }}\"\r\n  tags:\r\n    - ec2_tags\r\n```\r\nWhich is caused when the credentials are not configured properly. However, I have a valid ${HOME}/.boto with the '[Credentials]' section correctly configured. The ec2 dynamic inventory script and connecting (and listing tags) with plain boto work fine. Passing credentials with environment variables don't work, the only workaround I found was specifying the key's values in the play, like this:\r\n\r\n```\r\nlocal_action: ec2_tag resource=\"{{ ec2_id }}\" region=sa-east-1 state=present aws_access_key=****** aws_secret_key=******\r\n```\r\n\r\nVerified with ansible 1.8.2 and git HEAD, boto 2.35.1. IIRC this was working around May 2014, when I first made this role."}}