Copy a file from SFTP to Amazon S3

I am trying to copy a file from SFTP to S3. I don't want to land the file intermediate server please suggest me ways to do it.

Upvotes: 2

Views: 3865

Answers (1)

300D7309EF17
300D7309EF17

Reputation: 24573

I'm assuming you don't have access to/control of the sftp server. If you do have access, it's easy.

Otherwise, pick the language of your choice and stream the data. For instance, with Python you can use paramiko's sftp.getfo() and point that file stream at Boto's s3.key.send_file(). That keeps you from needing to download the file to disk.

However, there's no way to tell a random SFTP server to send it to S3.

Upvotes: 4

Related Questions