We're using Ansible and aws-cli for deployment, configuration management and orchestration of our application.It's a great way to automate those process.
Unfortunately, from time to time (I can't point exactly when, but it happens after few days of working with ansible) I'm getting the following message:
Authentication error retrieving ec2 inventory. AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment vars found but may not be correct
I'm using Ubuntu 14.04 for running ansible, I'm not changing anything related to aws access-key or secret-key. I also tried to work with boto but acts the same.
The only thing that helps is restart my machine.
Any idea, what can cause this problem?
Thanks, Effi
aws configure
didn't help :( – Effi Bar-She'anexport AWS_ACCESS_KEY_ID=XXX export AWS_SECRET_ACCESS_KEY=XXX
– Effi Bar-She'an