Upgrading to the latest version of AMIMOTO

As we improve the AMIMOTO AMI we roll those updates into new releases. If you previously launched a server using our AMI this guide will help you get the latest software without migrating.

The updating process takes just a few minutes to start but can take a while to finish. We recommend starting this right before a much needed coffee break.

There are two ways to upgrade AMIMOTO:

  1. Launch a new server and migrate
  2. Update the existing server using this guide

TL;DR for updating an existing server:

  1. Create a snapshot or backup
  2. Log in with SSH
  3. Check your AMI version
  4. Run the upgrade scripts
  5. Restart the server

Target AMIs:

This update will work on the following AMIs available in the AWS Marketplace.

Upgrading AMIMOTO-AMI

⚠️ Before moving ahead, don't forget to create a snapshot or backup!

1. Log into your server with SSH

If you are not familiar with connecting to your server with SSH, we've created a how-to guide for just that. 

ssh ec2-user@example.com

2. Check the current AMIMOTO version

git -C /opt/local/chef-repo/cookbooks/amimoto/ branch

If this returns 2016.01 you are good to go! If you are running an earlier version we recommend launching a new AMI and migrating.

3. Run AMIMOTO update scripts

curl -L -s https://raw.githubusercontent.com/amimoto-ami/amimoto-update/master/amimoto_update.2016.01.sh | sudo bash

Copy and paste this command into your terminal window using SSH, hit return.

Please note: this command will replace and overwrite packages of PHP and MySQL which you've installed manually.

4. Reboot the server

sudo reboot

That's it!

The updates are automated so just sit back and wait. When they are complete run the sudo reboot  command to finish the process.