使用CloudFront的发送文件从S3到第三方FTP服务器到第、三方、服务器、文件

2023-09-11 09:06:45 作者:撩妹一把手

我有存储在S3中的一些文件。 在用户的要求,我想将它们转移到一个第三方网站的FTP服务器。 亚马逊S3不支持FTP / SFTP。

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

目前我下载从S3文件使用S3 API的我的本地服务器,然后将其转移到第三方的FTP服务器。

Currently I am downloading the file from S3 to my local server using S3 APIs and then transferring it to third party FTP server.

S3 --API - >本地--ftp - >第三方FTP

S3 --API--> Local --FTP--> Third party FTP

现在,而不是我想要的文件直接直接从S3没有它下载到我的本地服务器转让给第三方的FTP服务器。

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

S3 --- CloudFront的或其他服务--->第三方FTP

S3 ---CloudFront or Other Service---> Third Party FTP

我能如何使用CloudFront的或任何其他服务吗? 任何帮助将AP preciated。

How can I do it using cloudfront or any other services? Any Help will be appreciated.

在此先感谢。

推荐答案

S3只有API来获取数据,并从它。它也有一个API函数,以两个桶之间复制数据,但仅此而已。

S3 only has APIs to get data to it and from it. It also has an API function to copy data between two buckets, but that's about it.

如果您需要从S3将数据传输到其他的地方,想从S3下载保存到本地机器,我建议你开始一个t1.micro实例,并把脚本就可以将文件下载到它(你赢了T支付你不支付任何费用,并且在同一地区,因为之间的S3和EC2实例带宽的显著更快),然后上载从该实例的远程第三方FTP站点。

If you require to transfer data from S3 to other places and want to save the download from S3 to your local machine I suggest you start a t1.micro instance and put a script on it to download the files to it (you won't pay the bandwidth because between S3 and EC2 instance on the same region you don't pay anything and its significantly faster) and then upload from that instance to the remote 3rd party FTP site.