Sending a file from S3 to a third-party FTP server using CloudFront

I have files that are stored on S3. In the user request, I want to transfer them to the FTP server of a third-party site. Amazon S3 does not support FTP / SFTP.

I am currently uploading a file from S3 to a local server using the S3 API and then transferring it to a third-party FTP server.

S3 --API β†’ Local --FTP β†’ Third-Party FTP

Now instead, I want to transfer files directly to a third-party FTP server directly from S3, without uploading it to the local server.

S3 --- CloudFront or other service ---> third-party FTP

How can I do this using the cloud or any other services? Any help would be appreciated.

Thanks in advance.

+4
source share
1 answer

S3 has only an API to receive data from and from it. It also has an API function for copying data between two buckets, but more on that.

If you need to transfer data from S3 to other places and you want to save the download from S3 to the local computer, I suggest you run an instance of t1.micro and put a script on it to download files to it (you won’t pay bandwidth, because between with S3 and EC2 instances in the same region you pay nothing much faster), and then upload from this instance to a remote third-party FTP site.

+1
source

Source: https://habr.com/ru/post/1337908/


All Articles