-
Notifications
You must be signed in to change notification settings - Fork 0
Home
A Wiki page created to go through setup on AWS and other configurations
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.
-
SSH into the EC2 instance
-
Once you have use the following command to install MySQL Server:
sudo yum install mysql-server
-
When you are prompted, type 'y'.
-
Configure it to start up automatically on reboot using the command:
sudo chkconfig mysqld on
-
Start mysql:
sudo service mysqld start
-
You would see a response like the following:
Starting mysqld
-
Connect to mysql:
mysql -uroot -p
-
Create user:
CREATE USER 'user'@'%' IDENTIFIED BY 'password';
-
Grant permissions:
GRANT ALL PRIVILEGES ON *.* TO 'user'@'%' WITH GRANT OPTION;
-
Flush priviledges
FLUSH PRIVILEGES;
-
SSH into your EC2 machine
-
sudo yum update -y
-
sudo yum install -y docker
-
sudo service docker start
-
Add the ec2-user to the docker group so you can execute Docker commands without using sudo:
sudo usermod -a -G docker ec2-user
-
Type
exit
(so that changes take place) -
SSH again and run
docker info
to confirm if changes have taken place.