Working with AWS API{Message Forbidden}

0

I have done the following : 1.Added invoke Function "Addpermission"API with the following command.

aws lambda add-permission --function-name FunctionName --principal iot.amazonaws.com --source-arn AuthorizerARn --statement-id Id-123 --action "lambda:InvokeFunction"

2.Verify Authorizer Response with the command aws iot test-invoke-authorizer --authorizer-name NAME_OF_AUTHORIZER --token TOKEN_VALUE

In AWS CLI. gives the following error: aws: error: argument operation: Invalid choice, valid choices are:

And Postman API is still giving {message Forbidden} :( Note:TOKEN_VALUE is up to date

1 個回答
0

Make sure of below:

profile picture
專家
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南