I am new to AWS. I have an Application load balancer which listens on http:80 and https:443. To this I have attached a target group at port 8087. I have an EC2 instance running a spring boot app on port 8087. This is ec2 is added as target to d above mentioned target group. Now when I try to access my swagger page of app using alb url - https://alb-4444554.us-east-1.elb.amazonaws.com/demo/api/swagger-ui.html (dummy url) , it doesn't load.Because my target group health check on port 8087 fails with code 400. I am able to access swagger page directly from ec2 url and port 8087 . But not through ALB. I want any request coming to my alb to be directed to this ec2 spring boot app.
Asked
Active
Viewed 344 times
0
-
What are the health settings for the tg? Port and protocol? Maybe they don't match to what instance expects? – Marcin May 18 '20 at 21:34
-
@Marcin HTTPS : 8087 – adi May 19 '20 at 19:58
-
The health checks should be HTTP. – Marcin May 19 '20 at 23:02
-
Health Check is HTTP/8087 only . Target groups's protocol is HTTPS – adi May 20 '20 at 20:04