This repository contains a terraform template to automatically deploy a vm in google cloud that aligns with the always free specifications
- terraform >= v0.12.x
- google cloud cli (gcloud) >= 242.0.0
- google cloud account
- make
- Log into google cloud account using gcloud cli
Authenticated account needs to have access to generating projects and link the project to a billing account.
gcloud auth application-default login
- Create a terraform.tfvars file and add the billing account id
format like this:
billing_account_id = "xxx"
- Deploy the VM using the make file
make up
- Connect to the instance using the connect command defined in the make file
make connect