cd /tmp/----------->cp vprofile-v2.war /var/lib/tomcat8/webapps/ROOT.var------>start tomcat 8 ------->systemctl start tomcat8---------->
ls var/lib/tomcat8/webapps/------>cd var/lib/tomcat8/webapps/ROOT--------->ls--------->cd WEB-INF---------->ls------->cd classes----->ls ------------>where we have application property
Now let check our servers are connected by using telnet db01.vprofile.in 3306
LOAD BALANCER AND DNS
All our server is working fine now we need to install Load balancer and need to create Target group
Load balance
First create target group --- >instances---->Name: vpofile-app-TG---->protocol --->HTTP------>port:8080 ------------>same VPC-------> Health check:/login -------->For health check over write the port 8080 available instance server tomcat.--------->create target group
Go to load balancer
application load balancer
crete http amd https---->Name: vprofile-prod-elb----->internet facing------>ptotocol HTTP 80---------->protocolo:HTTPS 443------>Select all the zone ----->click next ---------->certificate for HTTPS(we already got the certificate from DNS select that certificate)-------->Security group Load Balancer Vprofile-ELB-SG
Left side you have create launch configuration.---------->create launch configuration----> name: vprofile-app-LC
Select IAM---> Select from the Link------> T2.micreo
Role: we already created iam roles choose that. -------------> security: vprofile-app security group --------------->create launch configuration.
Auto scaling group
crete autoscaling--- name:vprofile-app-ASG ------------>Select launch configration--------> Same Vpc------>Select all zone--------> Enable load balancer select our target group and check health check on the load balancer-----> We can decide the capacity ------> Scaling policy----> Tracking scaling policy----> Target value for Cpu 50%---->Next---> add notification-----> next----> Tags name: vprofile-app ---------->Create auto scaling group.
OUR AWS CLOUD COMPUTING PROJECT IS SUCCESSFULLY DONE! AND ITS UP AND RUNNING .