feat: refactor Function URL permissions#3735
Conversation
mbfreder
left a comment
There was a problem hiding this comment.
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). |
|
This reverts commit 9ed1d64.
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:InvokeFunctionUrllambda:InvokeFunctionBefore you only need
lambda:InvokeFunctionUrlto allow invokinglambda:InvokeFunctionpermission in addition to thelambda:InvokeFunctionUrlthat 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 initthrough 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.