Skip to content

Update Lite

jlagordon edited this page Apr 6, 2020 · 17 revisions

Overview

Updating Solodev CMS Lite involves backing up the current environment; logging into the AWS account associated with the Solodev instance launching a brand new stack with the latest version; logging into the new server; modifying and running the restore script.

Prerequisites

In addition to subscribing to the market place and installing a Solodev CMS Lite Edition stack users should create and configure the resources listed below before starting the update process.

  • IAM User
    • IAM User ARN.
    • IAM User Access Key.
    • IAM User Secret Key.

Note: Please refer to the Create a New IAM User on the Backup Lite page for instructions on creating a user in AWS.

  • S3 Bucket
    • S3 Bucket Name.

Note: Please refer to the Create a New S3 Bucket on the Backup Lite page for instructions on creating an S3 Bucket.

  • EC2 Key Pair
    • In order to SSH into the server.
    • This should be the same Key Pair selected when originally installing the software.

Step 1 -- Backup the current environment

Refer to the Backup Lite page for instructions on backing up your Solodev instance.

Step 2 -- Navigate to the AWS marketplace and select Launch CloudFormation

Please refer to the following sections on the Install Lite page for instructions on creating a new stack:

  • Launch Solodev
  • Fill Out the CloudFormation Stack Wizard
  • Monitor the CloudFormation Stack Creation Process
  • View CloudFormation Stack Options

Step 3 -- Modifying and running the Restore script

  1. Connect to the new stack.

    Note: Refer to the "SSH Into an EC2 Server" on the Common Tasks & Commands page for instructions on connecting to the server through an SSH client

  2. Once connected, assume admin rights by running "sudo bash".

  3. Edit the restore.sh script located in the /root folder [/root/restore.sh](refer to the "Editing Files on the Server with Vi" on the Common Tasks & Commands page for instructions on how to edit with a SSH client).

    1. The lines that must be updated are located at the top of the file:

      export AWS_ACCESS_KEY_ID='IAM_ACCESS_KEY'

      export AWS_SECRET_ACCESS_KEY='IAM_SECRET_KEY'

      duplicity --force -v8 restore s3+http://RESTORE-BUCKET/backups /var/www/solodev/clients/solodev

    2. Change these values to include the bucket name, IAM Access Key, and IAM Secret Key that were provided after creating the S3 Bucket that contains the backup and the IAM User.

    3. Once the changes are made, exit insert mode and save the changes.

  4. Run the restore command by typing the following:

    /root/restore.sh