确保我的lambda功能的最简单方法是什么?
我有一个需要由用户访问的lambda。他们必须能够在浏览器中访问URL。确保功能室的最简单方法是什么,以便如果要泄漏URL,则需要另一层安全性?
我不能使用AWS_IAM,因为要求用户点击链接,我不能指望他们处理AWS SIGV4。
一个简单的解决方案是使用Queryparams并添加访问代码参数,该参数在调用Lambda时被检查,但由于各种原因,这似乎是一个坏主意。
I have a lambda that needs to be accessed by a user. They must be able to visit the URL in a browser. What is the simplest way to secure the functionURL so that if the URL were to leak, there would be another layer of security that would need to be gone through?
I can't use AWS_IAM as the requirement is that the user clicks on the link and I can't expect them to deal with AWS SigV4.
A simple solution would be using the queryparams and adding an access code parameter that is checked for when the lambda is called but this seems like a bad idea for various reasons.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
lambda函数url仅支持
aws_iam
和
,如文档。authtype
参数none然后,您需要使用AWS API网关,然后将Lambda功能放在其后面。
Lambda function URLs only support
AWS_IAM
andNONE
for theAuthType
parameter, as mentioned in the documentation.Then you need to use an AWS API Gateway, and place your lambda function behind it.