How to transfer files between AWS s3 and AWS ec2

前端 未结 9 2183
借酒劲吻你
借酒劲吻你 2020-12-23 09:34

I am using AWS ec2 instance. On this instance I\'m resulting some files. These operations are done by user data.

Now I want to store those files on s3 by writing co

9条回答
  •  时光取名叫无心
    2020-12-23 10:04

    I think the best answer in general is in fact above, to use the aws command, but for the cases where you don't want to bother installing anything else, it's also worth mentioning that you can just download the file over HTTPS, e.g. open a browser and navigate to:

    https://s3.amazonaws.com/(bucketName)/(relativePath)/(fileName)

    That also means you could just use wget or curl to do transfer from shell prompts.

提交回复
热议问题