[Fixed]-Error: "The security token included in the request is invalid" when using Boto python

14👍

You are getting this message since the security credentials / Access Keys for your AWS account has been changed.

Try again with new access keys it will work.

All the best.

0👍

Are you using a newer version of python 2.7? I had a similar error with this because of the ssl fixes.
I was doing this and it worked

import ssl
# for fix to python on mac which is newer than the one on linux
ssl._create_default_https_context = ssl._create_unverified_context

-1👍

because none of the solutions worked here was the solution for me.

on a mean stack, I had to run as sudo

sudo forever start startme.js

or

sudo node startme.js

when i did NOT use ‘sudo’, I received the error:

UnrecognizedClientException: The security token included in the request is invalid.

Leave a comment