AWS Lambda function REST API end point - 403 error

后端 未结 5 827
不知归路
不知归路 2021-01-04 00:06

I have an AWS Lambda function that is exposed as a REST API.

When it is invoked it via the Test button on aws lambda console, it works.

When it is invoked v

5条回答
  •  走了就别回头了
    2021-01-04 00:50

    If you are using authorisation of AWS then AWS calculate signature.

    If you passing get or post params has to send it in alphabetically order.

    Reason because when you pass token calculating signature UI or front end calcuate basis order which you added but AWS recalculate signature as per alphabetically order to match signature.

    Try sending params in alphabetically order.

    post = { 'id': 23, 'tag': '35353 }

提交回复
热议问题