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
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠