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 Answer
0

Make sure of below:

profile picture
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions