繁体   English   中英

为什么我可以调用这个 Lambda?

[英]Why can I invoke this Lambda?

我使用这些初始化值在 AWS 控制台中从头开始创建了 Lambda function:

  • 从零开始 .NET
  • Function URL 已启用
  • CORS 已启用
  • 未选择NONE验证
  • VPC 的私有子网

这产生了一个 IAM 角色,其中包含:

  • AWSLambdaVPCAccessExecutionRole
  • AWSLambdaBasicExecutionRole

VPC 有两个公有子网和两个私有子网,但是所有子网都只与一个本地路由 ( 10.0.0.0/16 ) 相关联。 查看路由表的子Subnet associations选项卡实际上没有显示任何显式关联,唯一的隐式关联是本地路由表。

为什么我还能调用Lambda的Function URL?

上一篇文章中,我发现几乎不可能使 Lambda function URL 可调用。

I understand that the Function URL is always outside the VPC, but does this mean that the function can essentially be made invisible to the world other than it's Function URL?

为什么我还能调用Lambda的Function URL?

因为正如您所说,此功能位于您的 VPC 之外。 Think of the function URL functionality as a standalone, serverless service akin to an API gateway (but just for lambda functions).

您的 VPC 是否具有 Internet 连接无关紧要。 When you create a lambda function, network interfaces are created however those are not leveraged by the function URL functionality.

但这是否意味着除了 Function URL 之外,function 基本上对世界不可见?

是的,情况可能如此。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM