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.hcl
file that's included in the root of your example folder. Theterragrunt.hcl
file contains notes that will guide you through customization options available. When done, you can view the changes you proposed running:terragrunt run-all plan
If 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 apply
If the
apply
command succeeds, you will be able to access Coder at the hostname you provided. Log in withadmin
as the username and the password that you're provided.
Tear down
To tear down your Coder deployment, run:
terragrunt run-all destroy