terraform-flask-sanity

hemanth reddy

Cloud Infrastructure Architect
DevOps Engineer
Software Engineer
AWS
AWS S3
Terraform

terraform-flask-sanity

This project involves setting up a Flask application on an EC2 instance using Terraform.
First, a VPC with a specified CIDR block is created, followed by a public subnet within the VPC.
An Internet Gateway (IGW) is attached to the VPC, and the route table is updated for internet access.
A security group is configured to allow inbound traffic on port 80 and 22 and outbound traffic.
An EC2 instance is defined within the public subnet, with the necessary instance type, AMI, key pair, and security group.
Terraform provisioners are used to install Python and Flask on the EC2 instance and clone the Flask application from a repository.
A startup script ensures the Flask application starts automatically.
The public IP of the EC2 instance is outputted for easy access.
Finally, the setup ensures the Flask application can be updated by the developer by pulling the latest changes from a version control system and restarting the server.
Partner With hemanth reddy
View Services

More Projects by hemanth reddy