ec2_tag does not take AWS credential keys from environment variable

87 views
Skip to first unread message

Pradeep Bhadani

unread,
Feb 3, 2015, 10:37:08 AM2/3/15
to ansible...@googlegroups.com
I am trying to use ec2_tag in my playbook and it failes with Authetication error " No handler was ready to authenticate. 1 handlers were checked. ['QuerySignatureV2AuthHandler'] Check your credentials".
I have set my AWS keys with Environment variables with all combination -
           access key : AWS_ACCESS_KEY , AWS_ACCESS_KEY_ID , EC2_ACCESS_KEY
           secret access key : AWS_SECRET_ACCESS_KEY  , AWS_SECRET_KEY , EC2_SECRET_KEY



However , If i supply my credentials key with ec2_tag like below , it works:
ec2_tag: resource={{ ansible_ec2_instance_id }} region={{ ansible_ec2_placement_region }} state=present   ec2_access_key=XXXXXXXXXXX ec2_secret_key=XXXXXXXXXXXX

Clearly , it is not good practice pass credentials keys with code.

Does anyone faces same problem or have any clue why its failing?

Pradeep Bhadani

unread,
Feb 3, 2015, 10:48:20 AM2/3/15
to ansible...@googlegroups.com
It seems that there is already an open bug : https://github.com/ansible/ansible/issues/9984

Dan Vaida

unread,
Feb 3, 2015, 12:10:25 PM2/3/15
to ansible...@googlegroups.com
Yeah... and if I'm not mistaking the Issue should be created here: https://github.com/ansible/ansible-modules-core
Reply all
Reply to author
Forward
0 new messages