Skip to main content

IT - VPS migration

Old instance inventory

Instance creation in AWS

  1. Go to AWS management console (e-connect root account)
  2. Open EC2 service pane / instances
  3. Click on Launch instances

     

    image-1632986473165.png

  4. Select My AMIs and choose the latest "web production" image available

    image-1633001226453.png

  5. Select an instance type (see the related Paymo story for specs)

    image-1633001534183.png

  6. Configure instance details (see the related Paymo story for specs)

    image-1633001670222.png

  7. Add storage, volumes should be encrypted with default aws/ebs key 

    image-1633001727347.png

  8. Add "Name" tag (see the related Paymo story for the instance name)

    image-1633001829395.png

  9. Configure security group, assign "E-connect accesses" for a classic web instance

    image-1633002129780.png

  10. Click on review and launch, then select a key pair. Of course, you must select a key that you own !

    image-1633002221984.png

Instance setup (OS)

  1. Log into the instance using SSH
  2. Update/upgrade APT packages
    sudo apt update
    sudo apt upgrade
    sudo reboot now
    # once rebooted
    sudo apt autoremove
  3. Change Hostname permanently
    sudo hostnamectl set-hostname ec2-*servername*
    sudo reboot now
  4. Edit hosts file and add servername to the localhost entries
  5. Run ansible playbooks

Instance setup (ISPconfig)

  1. Log into ISPconfig console https://serverip:8080 using the admin credentials
  2. Go to System > Server services and configure options like the following (set the servername accordingly)

    image-1634208925828.png

  3. Go to Sites > Website and add your website(s)

    image-1636101978804.png