Skip to content
Umang Sardesai edited this page Apr 4, 2018 · 2 revisions

Welcome to the DisorderlyLabs-Microservice-Infrastructure wiki!

A Wiki page created to go through setup on AWS and other configurations

Setup on AWS

Create your key-pair

You need a key-pair under your account to authenticate your access to EC2 machines. More details on creating a key-pair is available here.

Installing MYSQL server

  1. SSH into the EC2 instance

  2. Once you have use the following command to install MySQL Server: sudo yum install mysql-server

  3. When you are prompted, type 'y'.

To start the installed MySQL Server

  1. Configure it to start up automatically on reboot using the command: sudo chkconfig mysqld on

  2. Start mysql: sudo service mysqld start

  3. 
You would see a response like the following: Starting mysqld

Creating a custom user for the microservice application:

  1. Connect to mysql: mysql -uroot -p

  2. Create user: CREATE USER 'user'@'%' IDENTIFIED BY 'password';

  3. Grant permissions: GRANT ALL PRIVILEGES ON *.* TO 'user'@'%' WITH GRANT OPTION;

  4. Flush priviledges FLUSH PRIVILEGES;

Installing Docker:

  1. SSH into your EC2 machine

  2. sudo yum update -y

  3. sudo yum install -y docker

  4. sudo service docker start

  5. Add the ec2-user to the docker group so you can execute Docker commands without using sudo: sudo usermod -a -G docker ec2-user

  6. Type exit (so that changes take place)

  7. SSH again and run docker info to confirm if changes have taken place.