First AWS EBS steps

Clean install pip:

sudo -i
apt-get purge -y python3-pip
python3 ./
apt-get install python3-pip

Install AWS EB CLI:

sudo pip install awsebcli


eb init

Note: I got a "You are not authorized to perform this operation." error after entering the ssh key details. I could not get past it, so i uploaded the ssh key on the aws web ui.

Create an environment:

eb create

Deploy the application:

eb deploy

At that stage I sshed into the application and ran pending migrations:

eb ssh
cd /var/app/current
bundle exec rake db:migrate

Then I got the error message "An unhandled lowlevel error occurred. The application logs may have details." when trying to access the app.

It turned out. that I had to set the SECRET_KEY_BASE on eb.

rails secret
eb setenv SECRET_KEY_BASE=<output of rails secret>

Detailed information can be found at: