Last active
May 22, 2020 15:07
-
-
Save seunboy1/5ef3f79b5a73965f74ed077f1fcf50fc to your computer and use it in GitHub Desktop.
How to use AWS CLI on your local terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step One: (download awscli) | |
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" | |
Step Two: (Unzip awscli) | |
unzip awscli-bundle.zip | |
Step Three: (Run the installation) | |
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws | |
Step Four: (configure aws cli to connect to your aws account) | |
aws configure | |
Step Five: (Fill the following) | |
AWS Access Key ID [None]: Add your access key | |
AWS Secret Access Key [None]: add your secret key | |
Default region name [None]: Add your region | |
Default output format [None]: json | |
Quick test | |
aws s3 ls | |
Copy files/direectory from local to s3 | |
aws s3 cp /path/to/local/file/or/directory s3://my-bucket/path/ --recursive | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment