Terraform all the things using GCP and Cloudflare with some bash-fu
A terraform setup to kick a n1-standard-1
instance in GCP with Cloudflare features/services in front of it.
Make sure to get your GCP service user key and save it to terraformCreds.json
in the local directory or you could just update your credentials with the provider.
-
Add Authenticated Origin pull support
-
Add Firewall Rules
-
Argo Tunnel support to
template/install_server.tpl
-
Add Workers:
-
Copy
terraform.tfvars.example
toterraform.tfvars
and fill in appropriately. -
Secure your credentials file for GCP by either using the link above or through
gcloud
. -
terraform init
thenterraform plan --out=super.plan
thenterraform apply "super.plan"
-
Profit?