Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 amazon s3 存储桶中托管一个 javascript 文件。每当访问 .js 文件时,必须调用事件并且必须执行 lambda 函数?有什么方法可以知道是否访问了 s3 存储桶中的对象?未创建但刚刚访问。
不,这不是 Lambda 挂钩的可用事件之一。
您也许可以使用 S3 访问日志来连接某些东西 - 记录对另一个存储桶的访问,并让 Lambda 函数处理生成的日志文件 - 但无论如何它都不会是实时的。
仅供参考 - 现在可以通过在可以启动 lambda 函数的 s3 存储桶上创建触发器来实现。