-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
How to enable “ApiKeyRequired” property in SAM ? #633
Comments
I have resolved the above issue with external
Cant it possible with implicit API call in SAM rather than explicitly passing the Any help is appreciated |
I would like to see this in SAM as well. The swagger way is not really an option, as we would like to continue using the AWS::Serverless::Function with the Event configuration. Adding it to those would be the best option. |
@Private-SO , your approach worked well here. I gave up using implicit API on SAM for now. |
I had the same problem. I've tried changing to Cloudformation's API gateway, but I've noticed something good. It works with both OpenAPI 2.0 and OpenAPI 3.0. |
In cloudformation,
AWS::ApiGateway::Method
has a boolean propertyApiKeyRequired
. How can i achieve the same in SAM ?Even tried enabling in the
SWAGGER
which is like thisBut Still the changes are not applied in the processed Cloudformation template .
The processed template is like this
Am i missing anything ?
I have tried using the
AWS::ApiGateway::Method
in SAM where in the required properties it hasResourceId
for which i dont have any resource property created in SAM .Any help is appreciated.
Thanks
The text was updated successfully, but these errors were encountered: