Deploy resource AWS::ApiGatewayV2::Authorizer serverless

0

Hi team,

I'm trying to deploy a serverless project with a resource type AWS::ApiGatewayV2::Authorizer,
however, I keep getting a ConflictException.
I can see on CloudTrail multiple events "CreateAuthorizer" with the error ConflictException and the following message:
"Unable to complete operation due to concurrent modification. Please try again later."

A few minutes later, serverless throws an error: Internal Failure for my resource.

What I'm doing wrong?

{FUNCTION}: it's already deployed and working.
{REGION}: ap-southeast-2

[code]
gatewayAuthorizer:
Type: AWS::ApiGatewayV2::Authorizer
Properties:
Name: gatewayAuthorizer
ApiId: ${self:service}-Authorizer
EnableSimpleResponses: true
AuthorizerType: REQUEST
AuthorizerResultTtlInSeconds: 3600
AuthorizerUri: 'arn:aws:apigateway:{REGION}:lambda:path/2015-03-31/functions/arn:aws:lambda::{REGION}:{ACCOUNT}:function:{FUNCTION}/invocations'
IdentitySource:
- $request.header.x-auth-token
AuthorizerPayloadFormatVersion: 2.0
[/code]

BR,
Pedro Elias

asked 3 years ago800 views
2 Answers
0

[deleted]

Edited by: pedroBlinder on Sep 15, 2021 3:42 PM

answered 3 years ago
0

[deleted]

answered 3 years 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