Posted under » Ubuntu » AWS on 4 May 2021
There are many ways to install the AWS CLI. There is a windows version and there the ubuntu version
$ sudo apt install awscli
Once installed check the AWS CLI version using below command
$ aws --version aws-cli/1.18.69 Python/3.8.5 Linux/5.4.0-72-generic botocore/1.16.19
Now you have to go to your AWS profile > My security credentials > and create and generate an AWS Access Key ID. Configure.
$ aws configure --- aws_access_key_id = AKIAYYQWYU25FNDTJHXU aws_secret_access_key = kLa4BWDghqTEpElErBL18atNU416uGf0XYMXssWs Default region name [None]: ap-southeast-1 Default output format [None]: JSON
The AWS CLI stores sensitive credential information that you specify with aws configure in a local file named credentials, in a folder named .aws in your home directory. The less sensitive configuration options that you specify with aws configure are stored in a local file named config, also stored in the .aws folder in your home directory.
Now you have configured your AWS account using AWS CLI and you can now use S3 sync.