We have an environment where in we have two EC2 instances, one in the public subnet of the VPC which is our web server and the other in the private subnet of the VPC, which is pur Application server. The EC2 instance in the private subnet is running tomcat. How can we access the tomcat manager console from the browser?
Our security groups are as follows:
For the Web server, which has a public IP, we have allowed ports 22, 80 and 8080 from 0.0.0.0/0 (from anywhere). These are the inbound rules. The outbound rule is such that port 22 is allowed to the security group of the private subnet. This will allow ssh from web server to the application server.
The inbound for the private subnet allows 22 from the public subnet, as well as 80 and 8080.
A NAT gateway allows outbound traffic to the Internet. Internet is accessible from the application server.
How do I now:
Access the tomcat manager console using the browser? (Tomcat already configured on the application server. We created an image of an old instance and spun this one up)
In case we need to do any war file deployment to the application server, how do we do it?
Thank you..