How to transfer files between AWS s3 and AWS ec2

前端 未结 9 2190
借酒劲吻你
借酒劲吻你 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 09:53

    Install s3cmd Package as:

    yum install s3cmd
    

    or

    sudo apt-get install s3cmd
    

    depending on your OS. Then copy data with this:

    s3cmd get s3://tecadmin/file.txt
    

    also ls can list the files.

    For more detils see this

提交回复
热议问题