Josh Pachner
Josh Pachner

Reputation: 521

Has anyone setup SFTP with Google Cloud platform to trigger cloud function?

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 🙏

Upvotes: -1

Views: 1251

Answers (3)

Urvah Shabbir
Urvah Shabbir

Reputation: 985

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.

Upvotes: 0

Josh Pachner
Josh Pachner

Reputation: 521

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

Upvotes: 0

al-dann
al-dann

Reputation: 2725

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.

Upvotes: 2

Related Questions