0

I am testing out this proof of concept. However, I am getting Missing Authentication Token after adding the role into the lambda function that I created to run on API gateway. I am currently following below references to invoke lambda function + dynamodb + api gateway with Java.

After giving the access with IAM role. I am still having the same error. Please help to advice. Thank you all!

https://www.youtube.com/watch?v=TbCNVApI4lA&ab_channel=MadeEasy

https://github.com/enquiresandeep/AWSSamples


screenshots

Postman GET error

AWS role attached to lambda function

AWS role solution with dynamoDB access

2
  • If you are using IAM authentication, you need to add the appropriate Authorization header via AWS v4 signing process. I believe Postman can generate these for you but you need to enable those and sign the request with your role (ie add the headers). Commented Jun 12, 2021 at 3:06
  • Thanks bro for the kind guidance! I added the access and secret key from AWS and it works. Thank you so much! This is the video url i used too: youtube.com/watch?v=BNQX08KSmLY&ab_channel=BabarSiddiqui Commented Jun 23, 2021 at 15:24

1 Answer 1

1

Thanks to @JD D!

Obtain IAM access and secret key and add into Postman Authorization with AWS Signature before performing the API calls.

Reference Video: https://www.youtube.com/watch?v=BNQX08KSmLY&ab_channel=BabarSiddiqui

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.