Skip to content

whyzotee/wakapi-iac

Repository files navigation

🚀 Wakapi IaC

Available on October 17 (Assignment due date)

As an assignment for the course Introduction to Cloud Architecture, this project focuses on the implementation of Infrastructure as Code (IaC) and can automatically set up Wakapi and deploy it on Google Cloud Platform with Neon (PostgreSQL) as the database.

Features

  • 2 × e2-micro instances (auto-scales up to 3 instances during heavy traffic)
  • Neon (PostgreSQL) as the database
  • Easy and fast deployment

📐 Architecture Diagram

wakapi-iac

🎯 Before run terraform apply

Rename the example startup and variables files:

  mv startup.sh.example startup.sh
  mv variables.tf.example variables.tf

📝 Config your GCP project in variables.tf.

Variables Type Description
project_id string GCP Project ID.
region string GCP project region.
zone string GCP project zone.
credentials_file string Path to credentials file.
service_account string Google Service Account email.

🔧 Initialize and Review the Plan

  terraform init && terraform plan

🚀 Deploy to GCP

  terraform apply

🧹 Clean Up Resources

DANGER: This will destroy all resources created by Terraform!

  terraform destroy

For educational purposes, make with 🤍 by whyzotee.

About

An assignment on cloud architecture focusing on the implementation of Infrastructure as Code (IaC).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published