Cloudformation => Creating Authorizer to a ApiGateaway with Cloudformation => Error with JWTConfiguration when creating the authorizer

0

Creating a Gateaway API via AWS Cloudformation I have a problem with JWTConfiguration when creating the authorizer.

Authorizer:
   Type: 'AWS::ApiGatewayV2::Authorizer'
   Properties:
     Name: VSTORES_Api_CognitoAuthorizer
     ApiId:  zzzzzzzzzzzz
     AuthorizerType: JWT
     IdentitySource: 
       - '$request.header.Authorization'
     AuthorizerResultTtlInSeconds: 3600
     JWTConfiguration:
       Audience: 
         - xxxxxxxxxxxxxxxxxxxxx
       Issuer: https://cognito-idp.us-east-1.amazonaws.com/us-east-xxxxxxx

I get the following error:

Property validation failure: [Encountered unsupported properties in {/}: [JWTConfiguration]]

what am I doing wrong?

PD: Obviously xxxxx and zzzz are valid values. :)

2개 답변
2
수락된 답변

Hi, @Mariano Gomez Bidondo

Some of your property names are in the upper case.

  • Incorrect: JWTConfiguration
  • Correct: JwtConfiguration
profile picture
전문가
iwasa
답변함 2년 전
0

Thanks a lot!

답변함 2년 전

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

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

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

관련 콘텐츠