This project sets up a simple cloud infrastructure using AWS and Terraform to deploy a Node.js application with a MySQL database. The infrastructure is designed to be scalable and secure, leveraging AWS services like EC2, S3, RDS, and VPC.
- GitHub hosts the Node.js application's code.
- Terraform provisions the AWS infrastructure, including:
- EC2 instance to run the Node.js application.
- RDS MySQL database for data storage.
- S3 bucket for file storage.
- The Node.js application connects to the RDS database over port 3306, restricted by security groups for secure communication.
- The application interacts with Amazon S3 for uploading or retrieving files.
- The whole setup runs within the default VPC, ensuring isolation and secure access to resources.
- Add the Node Js application source Code in the directory:
cd project git clone https://github.com/Eshwrsai-07/Tf-Project.git ./app - Initialize the terraform project
terraform init
- Make relevant changes to the terraform code.
- Apply the changes and provision the infrastructure:
terraform apply
