You have to open port 8080 in your inbound rule of our security group attached to the instance. Then, you can access it on your instance public IP on port 8080
Are you interested to learn AWS ? Then check out AWS Certification Training Course by Intellipaat.