Clone the repository in your local machine.
git clone https://github.com/kprakhar27/streamify.git && \
cd streamify/terraform
Spin up the Infra -
Initiate terraform and download the required dependencies-
terraform init
View the Terraform plan
You will be asked to enter two values, the name of the GCS bucket you want to create and your GCP Project ID. Use the same values throughout the project.
terraform plan
Terraform plan should show the creation of following services -
e2-standard-4
Compute Instance for Kafkae2-standard-4
Compute Instance for Airflowe2-standard-2
Master nodee2-medium
Worker nodes9092
on the Kafka InstanceApply the infra. Note - Billing will start as soon as the apply is complete.
terraform apply
Once you are done with the project. Teardown the infra using-
terraform destroy
Note: The infra was setup a tad generously, you might not actually be fully utilizing the compute power. Feel free to reduce the instance sizes and test.