Log into your EC2 instance
git clone https://github.com/kmenon95/ContainerSecurity.git
To get flask application need to have flask installed.
- curl -O https://bootstrap.pypa.io/get-pip.py
- sudo pip3 install flask
- python3 app.py
you will get output like- [ec2-user@ip-172-31-43-236 Projects]$ python3 app.py
- Serving Flask app 'app'
- Debug mode: off WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
- Running on all addresses (0.0.0.0)
- Running on http://Localhost:8080
- Running on http://Private_IP:8080 Press CTRL+C to quit
Copy your public IP with the port you have mentioned and hit it in browser
http://<your_public_IP>:8080/