This article describes how to install the Amazon Web Services Command Line Interface (AWS CLI) on your A2 Hosting account.
To access an AWS account from your A2 Hosting account, you set up a virtual environment for Python, and then install and configure the awscli package.
Before you do this, however, you must log in to the AWS console and create a user group and a user. When you do this, AWS generates the user's Access key and Secret key. You must provide both of these keys during the awscli package configuration process.
The awscli Python package enables you to access an AWS account from the command line. To install and configure the awscli package on your A2 Hosting account, follow these steps:
cd ~ virtualenv amazon
To activate the virtual environment, type the following command:
To install the awscli package, type the following command:
pip install awscli
To make the awscli program executable, type the following command:
chmod +x ~/amazon/bin/aws
To configure the awscli package for access to your AWS account, type the following command:
At the Default output format prompt, press Enter. The AWS CLI is now configured for your account.
To view a list of commands available with the AWS CLI, type the following command at the command prompt:
For more information about the AWS CLI, please visit https://aws.amazon.com/cli.