I am trying to deploy a website I created using flask framework on AWS.
I created an EC2 instance, a security group profile and then created an environment on Elastic Beanstalk to upload and deploy the website. Everything ran smoothly and it even generated my website link in like 2 minutes but when I click the link the website, I get an HTTP 502 error.
How do I figure out what is wrong?