-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Support Built-in Authorizer for SAM template #459
Comments
I see this comment in the package.py
|
Despite SAM having no explicit support for it, the swagger API Gateway extensions do work. Maybe I'll come up with a POC this weekend if I can wrap my head around the chalice code. |
I'd like to get this working. IIRC correctly the issue wasn't the swagger portion, which as you mention is possible, but in getting the permissions set up so that API gateway is authorized to invoke the lambda function. I might be misremembering though, it's been a while. Let me know if you're able to get a POC working. If it's not possible, we could just drop to |
In order to get around that problem, I had to add a lambda permission to the authorizer. It gives execute permission to all gateways, but realistically, who cares? I think that if you were to restrict the permission to the api gateway being created, it would create a circular dependency.
|
I have passing tests, but I've never patched a CLI app before. Do you have any suggestions on how to do a real-world test with the cli? Invoking |
Added support for this in this PR: #580. Should be available in next chalice release. Closing out issue. |
Currently, chalice does not let me generate a SAM template when my app includes a built-in authorizer. I get the following message when packaging my app:
It is absolutely possible to add to a sam template using swagger API Gateway Extensions. Can this be added in please?
Example Template:
The text was updated successfully, but these errors were encountered: