This repository is Infrastucture as Code (IaC) of Tutortoise project. It uses Terraform to provision and manage resources.
- Terraform - v1.9.8 or later
- Google Cloud SDK - 502.0.0 or later
Before you can use terraform you need to authenticate with gcloud sdk
gcloud auth application-default login
Create a Google Cloud Storage bucket if you don't have one already. This bucket will be used as the backend to store the terraform state file.
gsutil mb -p your-project-id -l asia-southeast2 gs://tutortoise-terraform
git clone https://github.com/Tutortoise/infrastructure.git
cd https://github.com/Tutortoise/infrastructure.git
terraform init
This command will download and intialize the required providers and modules.
copying the terraform.tfvars.example
file to terraform.tfvars
and modifying the values.
project_id = "your-project-id"
region = "asia-southeast2"
Run the following command to preview the infrastructure changes:
terraform plan
Deploy the infrastructure with:
terraform apply
Confirm the changes when prompted.