-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Bug: can't use deployed/remote authorizer with sam local start-api
#5313
Comments
Hi, thanks for reporting this. Unfortunately, the message is incorrect, We'll update the message to correctly reflect this. |
@lucashuy thanks for the comment. Do you think this functionality would be something on the roadmap in the future? |
Unfortunately I don't have an answer as to whether or not Lambda Authorizers with ARN references to remotely defined Lambda authorizers will be able to be invoked in the future. Should anything change, our roadmap will reflect that. |
|
Description:
I know using a local authorizer was released in I think version
1.80.0
, which is great. However, I want to be able to use an already deployed authorizer while runningsam local start-api
. This authorizer is in it's own repo and is brought into other SAM repos like this, using it's ARN:Example template:
This does not work, and the error output can be seen below.
Steps to reproduce:
template.yml
by using it's FunctionARN.sam local start-api
Observed result:
Expected result:
The deployed authorizer to be referenced correctly by it's ARN and ran before running the local Lambda function.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
:Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: