# terraform-provider-coder **Repository Path**: brdbian/terraform-provider-coder ## Basic Information - **Project Name**: terraform-provider-coder - **Description**: No description available - **Primary Language**: Unknown - **License**: MPL-2.0 - **Default Branch**: cj/dependabot/go_modules/github.com/hashicorp/terraform-plugin-sdk/v2-2.34.0 - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-06-05 - **Last Updated**: 2025-06-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # terraform-provider-coder Terraform provider for [Coder](https://github.com/coder/coder). ### Developing #### Prerequisites - [Go](https://golang.org/doc/install) - [Terraform](https://learn.hashicorp.com/tutorials/terraform/install-cli) We recommend using [`nix`](https://nixos.org/download.html) to manage your development environment. If you have `nix` installed, you can run `nix develop` to enter a shell with all the necessary dependencies. Alternatively, you can install the dependencies manually. #### Building Follow the instructions outlined in the [Terraform documentation](https://developer.hashicorp.com/terraform/cli/config/config-file#development-overrides-for-provider-developers) to setup your local Terraform to use your local version rather than the registry version. 1. Create a file named `.terraformrc` in your `$HOME` directory 2. Add the following content: ```hcl provider_installation { # Override the coder/coder provider to use your local version dev_overrides { "coder/coder" = "/path/to/terraform-provider-coder" } # For all other providers, install them directly from their origin provider # registries as normal. If you omit this, Terraform will _only_ use # the dev_overrides block, and so no other providers will be available. direct {} } ``` 3. (optional, but recommended) Validate your configuration: 1. Create a new `main.tf` file and include: ```hcl terraform { required_providers { coder = { source = "coder/coder" } } } ``` 2. Run `terraform init` and observe a warning like `Warning: Provider development overrides are in effect` 4. Run `go build -o terraform-provider-coder` to build the provider binary, which Terraform will try locate and execute 5. All local Terraform runs will now use your local provider! 6. _**NOTE**: we vendor in this provider into `github.com/coder/coder`, so if you're testing with a local clone then you should also run `go mod edit -replace github.com/coder/terraform-provider-coder=/path/to/terraform-provider-coder` in your clone._