We have 3 stages on our API Gateway (Development, Testing, Production) they use a Cognito User Pool Authorizer for authorization, each one of the stages has a different User Pool so this configuration must be dynamic.
The problem: How do i configure the Auhtorizer for my API so that each API stage checks the authorization in the correct user pool?
PS: The Authorizer isn't a custom lambda function, it's the default Cognito authorizer.