是否有人将SFTP设置为使用Google Cloud Platform触发云功能?
因此,我能够设置SFTP,以便可以在GCP上将文件发送到我的VM实例。
但是,是否有人对如何在上传文件时运行云功能运行?
目的是通过我们的客户通过SFTP以某种EDI格式发送预订请求。 将需要一个云功能才能从发送的内容中运行。
任何方向都将不胜感激
So I was able to setup SFTP so that I'm able to send a file to my VM instance on GCP.
However, does anyone have any guidance on how to then have a cloud function run at time of file being uploaded?
The objective is with our customers they send booking requests via SFTP in a certain EDI format.
Would need a cloud function to then run off of what was sent.
Any direction would be greatly appreciated ????
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
作为一个想法 - 您可能希望以VM在VM上实现SFTP服务器,以使其在外部暴露的标准API背后使用存储存储桶进行文件管理。在这种情况下,您可以使用存储事件来触发云功能。
我认为确实存在这样的实现,因此应该可以找到一些示例。
As an idea to think about - you might like to implement a SFTP server on a VM in a such manner that it uses Storage Buckets for file management behind the externally exposed standard API. In that case you may be able to use storage events to trigger cloud functions.
I think such implementations do exist, so it should be possible to find some examples.
因此,我永远无法在GCP上找到一种简单,干净的方法。我确实找到了这个名为
免责声明:无论如何我都不属于Stedi。我只想让其他人知道它的出现可能会为一些开发人员挽救一些主要的头痛
So I could never figure out a simple, clean way of doing it on GCP. I did find this new platform called stedi. I was able to resolve my needs by it.
DISCLAIMER: I am not affiliate with stedi in anyway. I just want others to know that its out there cause could save some developers some major headaches
建立 @al-dann答案。您可以将VM文件夹映射到Google Cloud储物桶,并在文件上传到存储存储桶中触发云功能。
我发现 sftpgo 作为开源且适用于GCP的一种工具。
Building on @al-dann answer. You can map your VM folder to Google Cloud Storage Bucket and have cloud function triggered on file upload to Storage Bucket.
I found sftpgo as one tool that is open source and works well for GCP.