amazon-web-servicesjenkinsamazon-vpcopenvpn

Is it possible to access Jenkins GUI if it's in private subnet in aws vpc?


I can access my Jenkins (amazon linux EC2 instance) in private subnet using bastion host as well as using openVPN , that's how i installed Jenkins in EC2 instance , but i am not able to view UI for Jenkins. Is there a way to view GUI for Jenkins hosted in private subnet in AWS VPC ?


Solution

  • You can place an Application Load Balancer in your public subnet and have it forward traffic to your Jenkins instance in the private subnet. You will need to make sure your VPC route table is configured to route traffic correctly for this to work. You can use the public DNS of your load balancer, or create a custom domain using Route 53 and point it to your load balancer.