-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploying an alias with authorizers overwrites dev alias. #96
Comments
@crobot83 Thanks for reporting. Do you mean, that the function itself gets overwritten or the authorizer definition in the APIG? Please explain it in more detail, so that it is clear what exactly happens. |
Based on the description above, I think the core issue is that authorizers of type REQUEST do not have the stage variable appended. i.e REQUEST type authorizer -> my-custom-lambda I have also seen an issue where you do have to "Edit" and then "Save" the REQUEST type authorizers within AWS console so that they function correctly. However, this may be unrelated to the issue referenced above. |
Thanks, yes that makes sense. I agree that the handling should be the same. |
Sorry for my lack of clarity, @zachboyd is correct. |
Added support to append ${stageVariables.SERVERLESS_ALIAS} to authorizers of type REQUEST #96
Released with 1.6.0 |
…est-fix Added support to append ${stageVariables.SERVERLESS_ALIAS} to authorizers of type REQUEST serverless-heaven#96
Example:
Deploy a "newAlias" with an existing "dev" alias. The Authorizers of type "REQUEST" will overwrite the existing "dev" alias authorizers.
Appending a stage variable as a suffix to the lambda for authorizer should fix the situation.
Workaround appears to be going into API Gateway -> Instance -> Authorizers -> Edit authorizer and save.
The text was updated successfully, but these errors were encountered: