| frontend | ||
| terraform | ||
| .gitignore | ||
| README.md | ||
Vidinsight
Setup Instructions
For Use in EC2 or AMI (For Professors)
To be determined.
For Installation on Your Local Machine (For Teammates)
Prerequisites
Before getting started, make sure you have the following installed on your machine:
- Node.js with npm
- AWS CLI
- Terraform
Steps
-
Install Node Packages
In the root folder, run the following command to install the required npm packages:npm install -
Configure AWS CLI
Ensure your AWS CLI is configured with your access keys:aws configure -
Initialize Terraform
Navigate to each subfolder inside theterraform/directory and initialize Terraform by running:terraform init -
Running Terraform
To apply the Terraform configurations, go to each subfolder within theterraform/directory and execute:terraform plan terraform apply -
Tearing Down Terraform Resources
When you're finished and want to clean up the resources, run the following command in each subfolder ofterraform/:terraform destroy
Automation Scripts
I’m working on automating these Terraform commands for easier use. Currently, I've created .sh scripts that automate the apply, and destroy commands, but these only work on UNIX-based systems. I will soon provide equivalent scripts for Windows users.