0 votes
1 view
in AWS by (28.1k points)

Recently I have been trying to call a Lambda Function through AWS API Gateway. Whenever I mention Authentication type nothing works there but API becomes public and anyone with URL can access my API. To make my API call secure, I am using Authentication type AWS_IAM and also attached AmazonAPIGatewayInvokeFullAccess policy to my user but still, I am getting this error as below:

{ message: "Missing Authentication Token"}

 Can anyone guide me with what is needed to be done?

1 Answer

0 votes
by (57.5k points)

I suppose you are directly trying to access API link.

This wouldn't work because API is secured using the role of IAM and you must provide AWS authentication i.e Access key and Secret key.

Try to use the Postman Chrome extension to test your API:

http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-use-postman-to-call-api.html

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...