开发者

Transfer files between Amazon EC2 and S3 [closed]

开发者 https://www.devze.com 2023-01-22 03:00 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 10 years ago.

开发者_运维问答 Improve this question

I have log files generated by my application running on EC2. I want to first upload the log file to a bucket in S3. I then run a map reduce job and I want to then download the output file back to EC2.

What is the best way for me to upload and download files from EC2 and S3? Is it possible to do automate the process using Shell script on EC2, given that I'm using a linux instance? Also, would I need to modify access permission on the s3 bucket?


This is another tool I'm using for s3: http://s3tools.org/s3cmd


You can use the amazon rest tools to accomplish this. You need your access key and security keys. Using those you can use the tools that are usually already installed on the box to post a file to the s3 server.

To fetch it, you can just use wget.

0

精彩评论

暂无评论...
验证码 换一张
取 消