Erent
Erent

Reputation: 621

AWS unable to connect to Java springboot API endpoints

I am trying to run my springboot API on AWS however when i try to connect to the endpoint the error Site cannot be reached IP refused to connect. This my first time working with AWS.

I created a linux instance and connected to it using filezilla. Afterwards i added my jar to a folder which i created on the linux instance using filezilla. I started the springboot project and its running but the problem is that i cannt seem to connect to the endpoints. Am i missing something, how do i connect to my endpoints.

The other thing to note is that i enabled https on my API and added swagger also.

Upvotes: 0

Views: 675

Answers (1)

Yogesh_D
Yogesh_D

Reputation: 18764

You need to enable relevant ports in the instances' Security Group.

Look at this to create a new Inbound rule for the specific port. You can go to the aws console, (here I am assuming you have deployed to us-east-1 if its something else, go to the relevant region. Open up the relevant security group, and then click edit Inbound roles.

Edit inbound rules

Upvotes: 1

Related Questions