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