AWS cli download/upload from MacOS
3 easy steps to download from an S3 bucket via commandline:
1 2 3 | brew install awscli # (mac) **install homebrew if needed** aws configure [add access_key_id and secure_access_key when prompted] aws s3 sync s3://[aws bucket and path] /LOCAL_DESTINATION_PATH_HERE |
[aws bucket path] can be a file or directory.
Other useful commands:
1 2 3 | aws s3 ls s3://[aws bucket and path] aws s3 cp [source] [destination] aws s3 sync [source] [destination] --exclude "*.jpg" |
Linux, Windows – install instructions:
https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
Cheat sheet: