Installing AWS Tools

To deploy to AWS, we'll need to install the AWS CLI tools and configure them with AWS account credentials:

$ sudo pip install awscli pyyaml
$ aws configure
AWS Access Key ID [None]: ***************
AWS Secret Access Key [None]: ************************
Default region name [None]: us-west-1
Default output format [None]:

If you get an error because you don't already have pip, you'll need to install it first:

$ sudo easy_install pip

Create a new keypair for Deis and upload it to EC2:

$ ssh-keygen -q -t rsa -f ~/.ssh/deis-$USER -N '' -C deis-$USER
$ aws ec2 import-key-pair --key-name deis --public-key-material file://~/.ssh/deis-$USER.pub