Cannot Create Lambda Authorizer Using API Gateway WebSocket Console, Error: Unexpected Key 'ProviderArns' Found in Params

0

I cannot add a lambda authorizer to my WebSocket API from the AWS Console.

When I click the Create button, I get a red error banner at the top with the text: Unexpected key 'ProviderArns' found in params and nothing happens.

I've even tried creating a blank test WebSocket API and a blank test Lambda function, but I still get this error when creating a a new authorizer. I have tried every combination of having or not having Lambda Invoke Roles or Identity Sources, but I still get this error.

Image of the console and the error

This was all working yesterday, but my authorizers spontaneously stopped working today, and I haven't been able to add/edit them. I have since added a CloudWatch log role for logging, but even when I remove this, all my webSockets are still broken.

The authorizers in my REST APIs are still working just fine and I can add/delete/edit these authorizers with no problem.

Does anyone know what's going on or at least how to fix/circumvent it?

1개 답변
1
수락된 답변

Are you able to use AWS CLI to create an authorizer to work around the issue?

aws apigatewayv2 create-authorizer --name my-ws-authorizer --api-id <api id> --authorizer-type REQUEST --identity-source route.request.header.Auth --authorizer-uri arn:aws:apigateway:<region>:lambda:path/2015-03-31/functions/arn:aws:lambda:<region>:<accountid>:function:<function name>/invocations 

I was unable to reproduce the issue on my end in the us-east-1 region. However, if you constantly receive the error, can you capture a HAR file to see what error you see?

AWS
Taka_M
답변함 2년 전
  • Using the CLI worked. After doing that, the console is working now too... must've been some weird bug. Thank you so much for the help!!

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

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

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