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

已提問 4 年前檢視次數 998 次
2 個答案
0

[deleted]

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

已回答 4 年前
0

[deleted]

已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南