Get your AWS account Security Credentials.
Obtain AWS_SECRET_KEY and AWS_ACCESS_KEY from the security page. We can find it here or you can generate a new one.
Easiest way to install aws cli
is using Homebrew using command -
brew install awscli
Configure AWS CLI with the following command,
aws configure
It will prompt you following details. Use the credentials obtained in the Step 1.
AWS Access Key ID : XXXXXXXXXXXXXXXXXXXX
AWS Secret Access Key : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Default region name [us-east-1]: us-east-1
Default output format [json]: json
To Sync particular bucket content to your current folder use the following command:
aws s3 sync s3://your-bucket-name .
This will sync the bucket contents in your current folder.
Thanks for Reading, Hope you found this helpful!