DEV Community

Akshay Jain
Akshay Jain

Posted on • Edited on

Hosting a Sample Python Flask Application on AWS EC2 with AutoScaling and LoadBalancer(Ready CloudFormation)

  1. Open AWS Console (or aws cli)

  2. Create a new stack

  3. Use below cloud formation

https://github.com/akshaykrjain/coffee_with_code/blob/master/cloudformation/aws_cft.yaml

Note- - Change the user data part to your custome code. A sample code is already added in this cloud formation template.
- Make sure you have atleast 1 public and 1 private subnet ready.
- Private subnet must be able to connect to internet (Use Internet Gateway or NAT for that)

Top comments (0)