AWS CLI: Upload/Download from Mac/Linux
1) Using Terminal window on Mac, Download AWS CLI
1) Using Terminal window on Mac, Download AWS CLI
$ curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
$ curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
$ unzip awscli-bundle.zip
$ unzip awscli-bundle.zip
$ sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
$ sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
2) Using Terminal Window on Mac type the command 'aws configure', you will then be prompted to enter the Access Key, Secret Key, Region Name and Output format. It will look something like this:
2) Using Terminal Window on Mac type the command 'aws configure', you will then be prompted to enter the Access Key, Secret Key, Region Name and Output format. It will look something like this:
$ aws configure
$ aws configure
AWS Access Key ID [None]: AKIAIdf234EXAMPLE
AWS Access Key ID [None]: AKIAIdf234EXAMPLE
AWS Secret Access Key [None]: wJalrXUwed5gMDENG/bPxRfiCYEXAMPLEKEY
AWS Secret Access Key [None]: wJalrXUwed5gMDENG/bPxRfiCYEXAMPLEKEY
Default region name [None]: <press enter>
Default region name [None]: <press enter>
Default output format [None]: <press enter>
Default output format [None]: <press enter>
3) To upload the data type the following into the Terminal window:
3) To upload the data type the following into the Terminal window:
$ aws s3 cp [drag and drop file from finder] s3://[bucket name]/ -recursive
$ aws s3 cp [drag and drop file from finder] s3://[bucket name]/ -recursive
3) To download the data type the following into the Terminal window:
3) To download the data type the following into the Terminal window:
$ aws s3 cp s3://[bucket name]/ [drag and drop file from finder] --recursive
$ aws s3 cp s3://[bucket name]/ [drag and drop file from finder] --recursive