AWS not able to validate access credentials

I have created user id test in aws account, added user id to group which is having AWSAdmin role.
AWS has been confiured with credentials but when i run "aws ec2 describe-instances" i am getting below error.

An error occurred (AuthFailure) when calling the DescribeInstances operation: AWS was not able to validate the provided access credentials

Because of this i am not able to run other playbooks aswell.
Please suggest ASAP.

Regards,
Sami Shaik.
  • post-author-pic
    Brandon B
    10-03-2018

    Hello!


    Which course are you working on so I can take a look at the lab instance to see what might be causing the error?

  • post-author-pic
    Liyakhath S
    10-04-2018

    Hello Bruce,


    I am currently learning  ANSIBLE and AWS course.

    Regards,
    Sami Shaik.

  • post-author-pic
    Derek M
    10-04-2018

    It sounds like your user does not have the proper credentials, you haven't added the credentials properly to the AWS configuration file, or you have specified the wrong region. Check those items and, if you are still having issues, let us know what you've tried. Ensure to replace any credentials you've shared with placeholders that are non-working. 

Looking For Team Training?

Learn More