Terraform Module for QuakeJS servers on GCP.
I created a project named quakejs-server
using the following command (you will need to use a different project name):
$ bash setup_gcp.sh quakejs-server
...
$ export GOOGLE_APPLICATION_CREDENTIALS=$(realpath account.json)
$ export GOOGLE_PROJECT="quakejs-server"
$ terraform init
...
$ terraform plan -var="project=quakejs-server"
...
$ terraform apply -var="project=quakejs-server"
...
Apply complete! Resources: 8 added, 0 changed, 0 destroyed.
Outputs:
public_ip = W.X.Y.Z
Note: The
public_ip
will be your server's public IP to share with friends. Just put it in your browser, and you'll be frag'n like it's 1999!
$ terraform destroy -var="project=quakejs-server"
...