course:amazon_aws:start

This is an old revision of the document!


Amazon AWS

  • After installation, test the AWS commands
  • list the buckets
# aws s3 ls
# aws configure list

  • run the following command and enter the Access key and secret.
# aws configure
  • Enter the AWS Access Key ID and AWS Secret Access Key and leave other blank
    • AWS Access Key ID: ask your administrator
    • AWS Secret Access Key: ask your administrator
    • Default region name: Leave blank and Enter
    • Default output format: Leave blank and Enter

  • check your credentials again to see if it is success
# aws configure list

  • Now, try list all bucket again
# aws s3 ls

Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-services-s3-commands.html#using-s3-commands-managing-objects-sync

  • sync desired bucket by AWS S3 Sync command
# aws s3 sync <source> <target>
  • sync all files from a bucket to your local folder
    • create an empty folder e.g. apao2021
    • remember to put s3:bucket (source) in front of your localpath (target) <code> # cd ~/Downloads # mkdir apao2021 # cd apao2021 # aws s3 sync s3:apao2021 .

</code>

  • course/amazon_aws/start.1630493244.txt.gz
  • Last modified: 2021/09/01 18:47
  • by don.lee