title: how to expose and hit API service endpoint on AWS EC2
body: <p>I have a trivial service that's running on <code>localhost:8080</code> on an ec2 instance and was wondering how I would go about hitting a <code>/views</code> endpoint for that service.  I wasn't able to find much in the way of documentation around this except for this: <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/general/latest/gr/rande.html</a> , which seems to suggest that I would be able to hit the endpoint by issuing a get request to <code>ec2.us-east-2.amazonaws.com:8080/views</code>. At this point, I would like to make it a public API without the need for a key for simplification.</p>