I am trying to call a Lambda Function through AWS API Gateway.
I've been getting this error when I tried IAM authentication, API Key Authentication and also with no authentication.
{"message":"Missing Authentication Token"}
Some people had the same problem due to non existing endpoint. However, I've taken my endpoint directly from the Lambda Function AWS Console.
I've been trying to open the URL in the Browser and also on the Postman (with and without a header authentication: x-api-key: *****************).
Both responded with above stated error.
API Gateway supports multiple authentication methods that are suited to different applications and use cases. API Gateway uses the authentication method that you specify in your service configuration to validate incoming requests before passing them to your API backend.
Users of the REST API can authenticate by providing a user ID and password to the REST API login resource with the HTTP POST method. An LTPA token is generated that enables the user to authenticate future requests. This LTPA token has the prefix LtpaToken2 .
One more step: in Postman, you need to set the Authorization to AWS Signature, and then enter your AccessKey and SecretKey from your IAM user:
Postman screenshot
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With