Coder offers Terraform modules that help you deploy Coder faster.
Currently, we offer a single-command deployment of Coder to Google Cloud Platform. We will add support for additional cloud providers in the future.
Deploying Coder to Google Cloud Platform
Before proceeding, please make sure that you have both Terraform and Terragrunt installed.
-
Copy the GKE example to the location of your choice (we recommend version controlling the entire folder).
-
Create a cloud DNS zone containing your desired hostname. This must be in the same GCP project where you will deploy Coder.
-
Update the
terragrunt.hclfile that's included in the root of your example folder. Theterragrunt.hclfile contains notes that will guide you through customization options available. When done, you can view the changes you proposed running:terragrunt run-all planIf you run the above command and it fails, you may have misconfigured one or more of the variables required. The output will direct you to the problematic areas.
-
Deploy Coder by running:
terragrunt run-all applyIf the
applycommand succeeds, you will be able to access Coder at the hostname you provided. Log in withadminas the username and the password that you're provided.
Tear down
To tear down your Coder deployment, run:
terragrunt run-all destroy

