Skip to content

Cognito Authorizer with open-api definition #28994

Answered by artysed
artysed asked this question in Q&A
Discussion options

You must be logged in to vote

It was basically solved by removing those lines:

user_pool = cognito.UserPool.from_user_pool_arn(self, "CognitoUserPool", cognito_user_pool_arn)
apigateway.CognitoUserPoolsAuthorizer(
   self, "CognitoAuthorizer", cognito_user_pools=[user_pool]
)

CDK can resolve it on its own by providerArns

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by artysed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant