course:amazon_aws:start

This is an old revision of the document!


Amazon AWS

  • install AWS CLI version 2 by following this web page

https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html

  • After installation, test the AWS commands
  • list the bucket
# aws s3 ls
  • if the above command fail, it is because you have not configure the credentials yet, run the following command and enter the Access key and secret.
# aws configure
  • check your credentials
# aws configure list
  • try list all bucket again
# aws s3 ls
  • sync desired bucket by this command
  • create an empty folder e.g. localpath
  • remember to put s3:bucket in front of your localpath <code> # mkdir ~/localpath # aws s3 sync s3:bucketname ~/localpath

</code>

  • example
# cd ~/Downloads/apao2021
# aws s3 sync s3://apao2021 .
  • course/amazon_aws/start.1630492076.txt.gz
  • Last modified: 2021/09/01 18:27
  • by don.lee