Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

AWS Deployment

Sabien edited this page Jan 29, 2020 · 33 revisions

This is a guide to deploy our vapor instance to AWS for making the CI/CD pipeline streamlined.

Steps

  1. Create AWS account
  2. Select free tier
  3. Sign into console

Create EC2 instance:

  1. Choose AMI:
  • Ubuntu Server 18.04 LTS (HVM), SSD Volume Type
  • Choose the 64-bit (x86) option
  1. Instance Type:
  • Choose the t2.micro Instance Type
  1. Configure Instance
  • Default settings
  1. Add Storage
  • Chance Size to: 20 GiB
  1. Add Tags
  • Default settings (no tags)
  1. Configure Security Groups
  • Add a rule: override the default ssh with "myIP/32"
  1. Review
  • Just launch the instance
  1. Tags Create a new key pair and name it "username-desktop"

  2. Add billing alerts

Instance setup

Update the server, install auto-upgrades and time service, reboot:

sudo su apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y && apt-get install htop -y apt-get install unattended-upgrades -y && dpkg-reconfigure -plow unattended-upgrades apt-get install ntp -y && ntpq -p && service ntp restart reboot