Skip to content

Instantly share code, notes, and snippets.

View zhaozhongming's full-sized avatar

zhaozhongming

View GitHub Profile
@zhaozhongming
zhaozhongming / troubleshooting.md
Created January 29, 2020 09:11 — forked from cmawhorter/troubleshooting.md
Solution to AWS Lambda node.js UnrecognizedClientException "The security token included in the request is invalid."

Troubleshooting AWS unauthorized errors in lambda requests

This is mainly for node.js but might apply to other environments. Unsure.

If you are running a AWS Lambda function that calls another AWS service and getting an error about invalid tokens or other access denied errors, do this:

Check IAM

The role assigned to your lambda function will need permission to perform the actions. Check IAM and make sure the role has all the permissions.