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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则