Manually sign AppSync URL to use in Lambda gives bad signature error

后端 未结 3 748
别那么骄傲
别那么骄傲 2021-01-03 13:48

In a Lambda, I would like to sign my AppSync endpoint with aws-signature-v4 in order to use it for a mutation.

The URL generated se

3条回答
  •  迷失自我
    2021-01-03 14:22

    You don't need to construct a pre-signed URL to call an AWS AppSync endpoint. Set the authentication mode on the AppSync endpoint to AWS_IAM, grant permissions to your Lambda execution role, and then follow the steps in the "Building a JavaScript Client" tutorial to invoke a mutation or query.

提交回复
热议问题