Time to install EC2 instances
Before installing our instance we need to check user data script to provide EC2instance.
User Data Script in Git Repo:
Follow the steps to get the user data.
clone out git repo ----->cd to vprofile-project-------->cd to user data ------->ls ----->all the files listed under this which we used for last project.
MYSQL SERVER
Choose Launch instance ------>On the Left side your instance page you have AWS marketplace search centos in marketplace.------------------> Click download Centos7 ----------------> t2 micro is fine its a free tire-----------> click next--------------> click enable accidental terminator -------->now we gonna add mysql user data in box.------------>Click next --------------> will keep default storage 8-------------->will add some tags ---->Name: vprofile-db01----->security group will add backend security group it will allow 3306 from our application security group -----------> click next and launch our instance.
Wait until our instance start to running once its active go to security group of db01, now we gonna add ssh to Ec2 instance.
Go to backend security group Inbound ----> edit
Type: ssh--------->Port:22------>Source: MyIp Choose its own IP address.---->save the changes.
we download the pem key and find where its located, go to git bash. Try the below comments
ssh -i <where you download the key> <key name>centos@<public ip>
ssh -i desktop/vprofile-prod-key.pem centos@ipaddress.
log in----> then change into root
If you want to see user data from gitbash then try curl command
curl http://169.254.169.254/latest/user-data
Check our system is up and running.-----> Systemctl status MariaDB.
IF ANYONE WANT CLEAR VIDEO HOW TO INSTALL EC2 INSATNCE PLEASE CONTACT ME THROUGH EMAIL WILL UPLOAD A BRIEF VIDEO HOW TO DO IT.
Now we need to Launched instance for Memcached.
Choose Launch instance ------>On the Left side your instance page you have AWS marketplace search centos in marketplace.------------------> Click download Centos7 ----------------> t2 micro is fine its a free tire-----------> click next--------------> click enable accidental terminator -------->now we gonna add Memcached user data in box.------------>Click next --------------> will keep default storage 8-------------->will add some tags ---->Name: vprofile-mc01----->security group will add backend security group it will allow 11211 from our application security group -----------> click next and launch our instance.
we download the pem key and find where its located, go to git bash. Try the below comments
ssh -i <where you download the key> <keyname>centos@<public ip>
ssh -i desktop/vprofile-prod-key.pem centos@ipaddress.
log in ,Then change into root
If you want to see user data from gitbash then try curl command
Check our system is up and running.--------> Systemctl status Memcached
NOW WE GOING TO LAUCH INSTANCE FOR RABBITMQ
Choose Launch instance ------>On the Left side your instance page you have AWS marketplace search centos in marketplace.------------------> Click download Centos7 ----------------> t2 micro is fine its a free tire-----------> click next--------------> click enable accidental terminator -------->now we gonna add Memcached user data in box.------------>Click next --------------> will keep default storage 8-------------->will add some tags ---->Name: vprofile-rmq01----->security group will add backend security group it will allow 11211 from our application security group -----------> click next and launch our instance.
Copy public ip for rmq01.
we download the pem key and find where its located, Go to git bash----Try the below comments
ssh -i <where you download the key> <keyname>centos@<public ip>
ssh -i desktop/vprofile-prod-key.pem centos@ipaddress.
log in------->then change into root
If you want to see user data from gitbash then try curl command
Check our system is up and running.-------->Systemctl status RabbitMQ-server
All our server is up and running
Next step we need to install EC2 click the link below to follow the steps.
ROUTE 53