George Dimitrakakis:
Hello and happy holidays to all of you!
I was wondering if someone can help me with what it seems to be a basic ec2.py
authentication problem. My company recently enforced MFA
for AWS
and since then I am using the aws-vault
to store my token
, which means that my ~/.aws/credentials
file is empty and the ~/.aws/config
has the MFA
entry.
Apparrently my ec2.py
doesn’t have that implemented resulting in:
raise boto.exception.NoAuthHandlerFound(
boto.exception.NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV4Handler'] Check your credentials
If I try to use the old
config
and credentials
file I get :
ERROR: "Error connecting to AWS backend.
You are not authorized to perform this operation.", while: getting EC2 instances%
Any help is much appreciated!