Nooby1
Nooby1

Reputation: 49

Sending Requests from postman to AWS ec2 instance

I have my ec2 instance running a docker image and id like to test the functionality of my routes with postman, however whenever I ping the ec2 public dns, it says connection refused. I have the security group opened up for all traffic from my machine and am running the postman desktop app. The example route I'm trying to hit is

https://{IP address here}.compute-1.amazonaws.com:6000/register

and I'm sending a post request with some json in it. All of this works fine on my local machine. Please tell me what I'm missing?

Upvotes: 1

Views: 3489

Answers (1)

Marcin
Marcin

Reputation: 238497

You can't use https:. Instead you must use http: as default EC2 instance url does not support HTTPS. For valid https, the easiest way is to setup ALB or set it up on an instance directly.

Upvotes: 2

Related Questions