CDK Stack - HttpApi + HttpAuthorizer - Authorizer not getting attached

0

Hey all,

i started creating an App with CDK. I am trying to create a (HTTP-)ApiGateway backend with an JWT Authorizer.

By now i managed to create the APIs and successfully invoke my Lambda to get a valid response. The authorizer is created successfully. But it's just not getting attached to my routes.

I am using the aws-cdk-lib/aws-apigatewayv2 package for the HttpApi and HttpAuthorizer construct. When i am trying to add a "authorizer" property and pass my created Authorizer i get an error because the property expects a HttpRouteAuthorizer, which i didn't manage to find :(

It is kind of confusing that there are many packages, some are even experimental, a it's hard to find the most up to date ones.

I hope someone can point me into the right direction

Thank you and all the best Sebastian

답변 없음

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

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

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

관련 콘텐츠