I currently have an API going through our API Gateway, which has multiple Custom Authorizers attached - LiveAuthorizer
and TestAuthorizer
.
I'd like to change my custom authorizer based on the stage being accessed, just like a stage variable. If we are in stage Test, use the TestAuthorizer
, if in live use the LiveAuthorizer
.
From my research and this page it doesn't seem possible, any ideas?
PS - I know this could be handled from within the Lambda function doing the authentication, I'm just curious if there is another way (similar to stage variables).