Skip to content
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

feat: Add EnableFunctionDefaultPermissions property to HTTP Api #3001

Merged
merged 17 commits into from
Mar 13, 2023

Conversation

aaythapa
Copy link
Contributor

@aaythapa aaythapa commented Mar 6, 2023

Issue #, if available

#2933

Description of changes

Added the EnableFunctionDefaultPermissions (related pr: #2885) to SAM Http Api. By default, HTTP Api doesn't create the permissions resource that allows the API to invoke the lambda authorizer so this property will be False by default. When its set to True it'll create the permissions resource.

Description of how you validated changes

Ran a test with the property set to false and without the property. Compared outputs and made sure only change was that the permissions resource was added. Deployed a template with SAM Http Api with the permission resource and made sure the API could invoke the authorizer.

Checklist

Examples?

Please reach out in the comments if you want to add an example. Examples will be
added to sam init through aws/aws-sam-cli-app-templates.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@aaythapa aaythapa marked this pull request as ready for review March 6, 2023 22:06
@aaythapa aaythapa requested a review from a team as a code owner March 6, 2023 22:06
@aaythapa aaythapa changed the title feat: Add DisableFunctionDefaultPermissions property to HTTP Api feat: Add EnableFunctionDefaultPermissions property to HTTP Api Mar 10, 2023
@aaythapa aaythapa added this pull request to the merge queue Mar 13, 2023
Merged via the queue into aws:develop with commit c5690d5 Mar 13, 2023
@aaythapa aaythapa deleted the http-api-permissions-change branch March 13, 2023 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants