API Gateway multiple Cognito pools Authorizer Error

0

Hi, I am using AWS CLI to run this command

https://docs.aws.amazon.com/cli/latest/reference/apigateway/create-authorizer.html

aws apigateway create-authorizer --rest-api-id "cxxxxxxb" --name "spool-finder-sp-admin" --type COGNITO_USER_POOLS --provider-arns "arn:aws:cognito-idp:us-east-1:xxxxxx:userpool/us-east-1_XXXXXXXX" "arn:aws:cognito-idp:us-east-1:XXXXX:userpool/us-east-1_XXXXXXXX" "arn:aws:cognito-idp:us-east-1:xxxxxxxx:userpool/us-east-1_XXXXXXXX" --identity-source "method.request.header.Authorization"

But get this error

An error occurred (ConflictException) when calling the CreateAuthorizer operation: Unable to complete operation due to concurrent modification. Please try again later.

Scenario is I have to add 3 cognito pools as authorizer in my API Gateway via CLI.

1개 답변
0

Are you passing this from a Windows machine? If not can you try replacing the double quotes with single quotes or no quotes - https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html

profile pictureAWS
전문가
답변함 2년 전

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

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

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

관련 콘텐츠