-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat: refactor Function URL permissions #3735
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The linter is failing on the generated CFN files. That's because InvokedViaFunctionUrl
is not yet available on CloudFormation. To make the linter pass, please add tests/translator/output/**/function_with_function_url_config.json
in cfnlintrc.yaml
file to ignore it. (Should be removed once the feature is GA)
Thanks, I'm kind of swaying between doing that (typically in private repo) or wait for official CFN update (public repo). |
|
Issue #, if available
Description of changes
To successfully invoke Lambda Function URLs, now you must have both of these Lambda permissions on your function:
lambda:InvokeFunctionUrl
lambda:InvokeFunction
Before you only need
lambda:InvokeFunctionUrl
to allow invokinglambda:InvokeFunction
permission in addition to thelambda:InvokeFunctionUrl
that would be normally added before this changeDescription of how you validated changes
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.