Table of Contents

Amazon AWS

AWS Cli tools Installation

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

AWS S3 commands

# aws configure list

# aws configure

# aws configure list

AWS S3 Sync commands

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

# aws s3 sync source target
# mkdir apao2021
# cd apao2021
# aws s3 sync s3://apao2021 .
# cd apao2021
# aws s3 sync s3://apao2021 .
Please note that if you delete a file on your local folder, the next time you run the AWS S3 sync will download it again.

Troubleshooting

fatal error: An error occurred (IllegalLocationConstraintException) when calling the ListObjectsV2 operation: The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to.

If failed, try change the region to 'ap-east-1' by running the 'aws configure' again.

# aws configure