Installing Amazon CLI: Aws - Version
Installing Amazon CLI: Aws - Version
To access the S3 buckets you previously created, from your EC2 instance you need to install
Amazon CLI tools on your EC2 instance. The steps for the same are given below.
1. Connect to your EC2 instance using Putty.
If you get the message “command not found” you need to install CLI using the
commands below, else you can skip the installation part.
unzip awscli-bundle.zip
7. Next you need to edit the .bashrc file where you need to add the line
alias aws='/usr/local/bin/aws' at the end of the file. To do this, open the
.bashrc file using the command
vi .bashrc
You can exit the editor by pressing the escape key followed by :wq!
8. Then update the .bashrc file using the command source .bashrc
9. Now verify if the aws CLI is installed or not using the command aws --version
10. Next, you need to configure your Access Key, Secret Key which you created in the
previous docs, and region using the command aws configure.
Note: Enter the access keys and secret keys from the csv file you downloaded in
previous docs. The region name will be us-east-1.
11. You can now see your buckets using the commands aws s3 ls