Linux system uploads files to S3 via AWS Command line

Source: Internet
Author: User
Tags awscli aws console

    1. Open your AWS console;
    2. Create a new user (such as test) in Iam, which automatically creates a user security credential when created, consists of an access key ID and a private access key, remembers it and downloads it, and uses it later;
    3. Select the user you just created, under the "Permissions" tab there is an "additional permission", click on it, find a permission named "Amazons3fullaccess" in the list, tick it, and click "Additional Permissions";
    4. Connect to your Linux server;
    5. Install Pip (refer to here, please ignore the installed);
    6. Installing AWSCLI
      Install AWSCLI
    7. Initialize the configuration (only need to be configured on first upload)
      AWS Configure

      Note: In this step, you will be asked to enter "access key ID", "Private access Key", "Default zone Name", "Default output format", the first two are automatically generated when IAM user is created, "Default zone name" is best to choose the region where you EC2, If you do not know your EC2 area corresponding to the string is what, you can refer to the link I provided below, if you really do not want to fill out the problem, it will automatically select the area closest to you, "default output format" can be filled in JSON and text format, the default is JSON format.

    8. Creating buckets
      AWS S3 MB S3://test20160307
    9. Uploading files to a bucket
      CP /ETC/MY.CNF S3://test20160307/

Linux system uploads files to S3 via AWS Command line

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.