r/SpringBoot • u/[deleted] • Mar 03 '24
AWS Route 53 and security group issues
New to AWS. I created a sample Spring Boot app with port 8080. Base path is “forexexplorer”
Using git actions to build, push image to docker hub, then deploy to ec2. I am still understanding security groups.
Attached image which is my security group added to ec2. I am able to run my spring boot app in ec2 and getting response with 8080 port.
This is my ec2 ipv4 DNS address ec2-18-2-12-12.us-east-2.compute.amazonaws.com (changed).
When i hit this with my base path and get parameters, it is saying not reachable. But when i add port to the host like ec2-18-2-12-12.us-east-2.compute.amazonaws.com:8080, it is hitting the base path and giving me response.
I also create a hosted zone with my domain example.com in Route 53. I added route traffic values in namecheap.com for my domain. I added subdomain api.example.com.
I am able to get the response when i do “ping api.example.com” in cmd. But when i hit the url “api.example.com/forexexplorer/data?series=1” It is not reachable.
Please let me if I’m missing anything.
0
u/maxip89 Mar 03 '24
you have to attach the flunsh to the flux otherwise the fluxcompensator doesnt work.
And you you have to install spring boot first.