Springboot Docker MysqlRDS
Springboot Docker MysqlRDS
Prerequisites:
1. Python2
2. Maven
3. Java-1.8.0-openjdk & Java-1.8.0-openjdk-devel
4. Awscli
5. Docker
6. git
Create EC2 Instance Here I used RHEL Amazon Machine Image
Update yum command:
yum update -y
Install java,git and wget:
yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel wget git-y
Install Python2:
yum install python2-pip -y
alternatives --config python
Install Awscli:
pip2 install awscli
aws configure
Click on Configure
Click on update
Click on Edit to give Run Task defination details
Click on save and click Next and Edit details for Container Service
Click on save and click on Next
Click on Next
Click on Create
After Creation of Cluster need to wait untill task status shows in RUNNING mode
Check Load Balancer, you will get new ELB
Copy DNS Name and give at GUI with port number and api
http://EC2Co-EcsEl-4VZ3CBBHY3M0-1984737267.us-east-1.elb.amazonaws.com:8080/insertemployee