DEV Community

Akshay Jain
Akshay Jain

Posted on • Updated 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

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)

Oldest comments (0)

Here is a post you might want to check out:

Regex for lazy developers

regex for lazy devs

Sorry for the callout 😆