Promote `count` usage to prevent module download on stop

pull/371/head
Muhammad Atif Ali 4 months ago
parent 6d2739131a
commit edef48b19a

@ -13,6 +13,7 @@ tags: [helper]
```tf ```tf
module "MODULE_NAME" { module "MODULE_NAME" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/MODULE_NAME/coder" source = "registry.coder.com/modules/MODULE_NAME/coder"
version = "1.0.2" version = "1.0.2"
} }
@ -28,6 +29,7 @@ Install the Dracula theme from [OpenVSX](https://open-vsx.org/):
```tf ```tf
module "MODULE_NAME" { module "MODULE_NAME" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/MODULE_NAME/coder" source = "registry.coder.com/modules/MODULE_NAME/coder"
version = "1.0.2" version = "1.0.2"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -45,6 +47,7 @@ Configure VS Code's [settings.json](https://code.visualstudio.com/docs/getstarte
```tf ```tf
module "MODULE_NAME" { module "MODULE_NAME" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/MODULE_NAME/coder" source = "registry.coder.com/modules/MODULE_NAME/coder"
version = "1.0.2" version = "1.0.2"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id

@ -17,6 +17,7 @@ e.g.
```tf ```tf
module "code-server" { module "code-server" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/code-server/coder" source = "registry.coder.com/modules/code-server/coder"
version = "1.0.2" version = "1.0.2"
agent_id = coder_agent.main.id agent_id = coder_agent.main.id

@ -14,6 +14,7 @@ A module that adds Apache Airflow in your Coder template.
```tf ```tf
module "airflow" { module "airflow" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/apache-airflow/coder" source = "registry.coder.com/modules/apache-airflow/coder"
version = "1.0.13" version = "1.0.13"
agent_id = coder_agent.main.id agent_id = coder_agent.main.id

@ -16,6 +16,7 @@ Customize the preselected parameter value:
```tf ```tf
module "aws-region" { module "aws-region" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/aws-region/coder" source = "registry.coder.com/modules/aws-region/coder"
version = "1.0.12" version = "1.0.12"
default = "us-east-1" default = "us-east-1"
@ -36,6 +37,7 @@ Change the display name and icon for a region using the corresponding maps:
```tf ```tf
module "aws-region" { module "aws-region" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/aws-region/coder" source = "registry.coder.com/modules/aws-region/coder"
version = "1.0.12" version = "1.0.12"
default = "ap-south-1" default = "ap-south-1"
@ -62,6 +64,7 @@ Hide the Asia Pacific regions Seoul and Osaka:
```tf ```tf
module "aws-region" { module "aws-region" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/aws-region/coder" source = "registry.coder.com/modules/aws-region/coder"
version = "1.0.12" version = "1.0.12"
exclude = ["ap-northeast-2", "ap-northeast-3"] exclude = ["ap-northeast-2", "ap-northeast-3"]

@ -13,6 +13,7 @@ This module adds a parameter with all Azure regions, allowing developers to sele
```tf ```tf
module "azure_region" { module "azure_region" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/azure-region/coder" source = "registry.coder.com/modules/azure-region/coder"
version = "1.0.12" version = "1.0.12"
default = "eastus" default = "eastus"
@ -33,6 +34,7 @@ Change the display name and icon for a region using the corresponding maps:
```tf ```tf
module "azure-region" { module "azure-region" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/azure-region/coder" source = "registry.coder.com/modules/azure-region/coder"
version = "1.0.12" version = "1.0.12"
custom_names = { custom_names = {
@ -56,6 +58,7 @@ Hide all regions in Australia except australiacentral:
```tf ```tf
module "azure-region" { module "azure-region" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/azure-region/coder" source = "registry.coder.com/modules/azure-region/coder"
version = "1.0.12" version = "1.0.12"
exclude = [ exclude = [

@ -13,6 +13,7 @@ Automatically install [code-server](https://github.com/coder/code-server) in a w
```tf ```tf
module "code-server" { module "code-server" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/code-server/coder" source = "registry.coder.com/modules/code-server/coder"
version = "1.0.26" version = "1.0.26"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -27,6 +28,7 @@ module "code-server" {
```tf ```tf
module "code-server" { module "code-server" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/code-server/coder" source = "registry.coder.com/modules/code-server/coder"
version = "1.0.26" version = "1.0.26"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -40,6 +42,7 @@ Install the Dracula theme from [OpenVSX](https://open-vsx.org/):
```tf ```tf
module "code-server" { module "code-server" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/code-server/coder" source = "registry.coder.com/modules/code-server/coder"
version = "1.0.26" version = "1.0.26"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -57,6 +60,7 @@ Configure VS Code's [settings.json](https://code.visualstudio.com/docs/getstarte
```tf ```tf
module "code-server" { module "code-server" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/code-server/coder" source = "registry.coder.com/modules/code-server/coder"
version = "1.0.26" version = "1.0.26"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -73,6 +77,7 @@ Just run code-server in the background, don't fetch it from GitHub:
```tf ```tf
module "code-server" { module "code-server" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/code-server/coder" source = "registry.coder.com/modules/code-server/coder"
version = "1.0.26" version = "1.0.26"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -88,6 +93,7 @@ Run an existing copy of code-server if found, otherwise download from GitHub:
```tf ```tf
module "code-server" { module "code-server" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/code-server/coder" source = "registry.coder.com/modules/code-server/coder"
version = "1.0.26" version = "1.0.26"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -100,6 +106,7 @@ Just run code-server in the background, don't fetch it from GitHub:
```tf ```tf
module "code-server" { module "code-server" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/code-server/coder" source = "registry.coder.com/modules/code-server/coder"
version = "1.0.26" version = "1.0.26"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id

@ -13,6 +13,7 @@ Automatically logs the user into Coder when creating their workspace.
```tf ```tf
module "coder-login" { module "coder-login" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/coder-login/coder" source = "registry.coder.com/modules/coder-login/coder"
version = "1.0.15" version = "1.0.15"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id

@ -15,6 +15,7 @@ Uses the [Coder Remote VS Code Extension](https://github.com/coder/cursor-coder)
```tf ```tf
module "cursor" { module "cursor" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/cursor/coder" source = "registry.coder.com/modules/cursor/coder"
version = "1.0.19" version = "1.0.19"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -27,6 +28,7 @@ module "cursor" {
```tf ```tf
module "cursor" { module "cursor" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/cursor/coder" source = "registry.coder.com/modules/cursor/coder"
version = "1.0.19" version = "1.0.19"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id

@ -17,6 +17,7 @@ Under the hood, this module uses the [coder dotfiles](https://coder.com/docs/v2/
```tf ```tf
module "dotfiles" { module "dotfiles" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/dotfiles/coder" source = "registry.coder.com/modules/dotfiles/coder"
version = "1.0.18" version = "1.0.18"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -29,6 +30,7 @@ module "dotfiles" {
```tf ```tf
module "dotfiles" { module "dotfiles" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/dotfiles/coder" source = "registry.coder.com/modules/dotfiles/coder"
version = "1.0.18" version = "1.0.18"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -39,6 +41,7 @@ module "dotfiles" {
```tf ```tf
module "dotfiles" { module "dotfiles" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/dotfiles/coder" source = "registry.coder.com/modules/dotfiles/coder"
version = "1.0.18" version = "1.0.18"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -50,12 +53,14 @@ module "dotfiles" {
```tf ```tf
module "dotfiles" { module "dotfiles" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/dotfiles/coder" source = "registry.coder.com/modules/dotfiles/coder"
version = "1.0.18" version = "1.0.18"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
} }
module "dotfiles-root" { module "dotfiles-root" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/dotfiles/coder" source = "registry.coder.com/modules/dotfiles/coder"
version = "1.0.18" version = "1.0.18"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -70,6 +75,7 @@ You can set a default dotfiles repository for all users by setting the `default_
```tf ```tf
module "dotfiles" { module "dotfiles" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/dotfiles/coder" source = "registry.coder.com/modules/dotfiles/coder"
version = "1.0.18" version = "1.0.18"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id

@ -16,6 +16,7 @@ Customize the preselected parameter value:
```tf ```tf
module "exoscale-instance-type" { module "exoscale-instance-type" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/exoscale-instance-type/coder" source = "registry.coder.com/modules/exoscale-instance-type/coder"
version = "1.0.12" version = "1.0.12"
default = "standard.medium" default = "standard.medium"
@ -44,6 +45,7 @@ Change the display name a type using the corresponding maps:
```tf ```tf
module "exoscale-instance-type" { module "exoscale-instance-type" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/exoscale-instance-type/coder" source = "registry.coder.com/modules/exoscale-instance-type/coder"
version = "1.0.12" version = "1.0.12"
default = "standard.medium" default = "standard.medium"
@ -78,6 +80,7 @@ Show only gpu1 types
```tf ```tf
module "exoscale-instance-type" { module "exoscale-instance-type" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/exoscale-instance-type/coder" source = "registry.coder.com/modules/exoscale-instance-type/coder"
version = "1.0.12" version = "1.0.12"
default = "gpu.large" default = "gpu.large"

@ -16,6 +16,7 @@ Customize the preselected parameter value:
```tf ```tf
module "exoscale-zone" { module "exoscale-zone" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/exoscale-zone/coder" source = "registry.coder.com/modules/exoscale-zone/coder"
version = "1.0.12" version = "1.0.12"
default = "ch-dk-2" default = "ch-dk-2"
@ -43,6 +44,7 @@ Change the display name and icon for a zone using the corresponding maps:
```tf ```tf
module "exoscale-zone" { module "exoscale-zone" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/exoscale-zone/coder" source = "registry.coder.com/modules/exoscale-zone/coder"
version = "1.0.12" version = "1.0.12"
default = "at-vie-1" default = "at-vie-1"

@ -13,6 +13,7 @@ A file browser for your workspace.
```tf ```tf
module "filebrowser" { module "filebrowser" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/filebrowser/coder" source = "registry.coder.com/modules/filebrowser/coder"
version = "1.0.23" version = "1.0.23"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -27,6 +28,7 @@ module "filebrowser" {
```tf ```tf
module "filebrowser" { module "filebrowser" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/filebrowser/coder" source = "registry.coder.com/modules/filebrowser/coder"
version = "1.0.23" version = "1.0.23"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -38,6 +40,7 @@ module "filebrowser" {
```tf ```tf
module "filebrowser" { module "filebrowser" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/filebrowser/coder" source = "registry.coder.com/modules/filebrowser/coder"
version = "1.0.23" version = "1.0.23"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -49,7 +52,9 @@ module "filebrowser" {
```tf ```tf
module "filebrowser" { module "filebrowser" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/filebrowser/coder" source = "registry.coder.com/modules/filebrowser/coder"
version = "1.0.23"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
agent_name = "main" agent_name = "main"
subdomain = false subdomain = false

@ -15,6 +15,7 @@ We can use the simplest format here, only adding a default selection as the `atl
```tf ```tf
module "fly-region" { module "fly-region" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/fly-region/coder" source = "registry.coder.com/modules/fly-region/coder"
version = "1.0.2" version = "1.0.2"
default = "atl" default = "atl"
@ -31,6 +32,7 @@ The regions argument can be used to display only the desired regions in the Code
```tf ```tf
module "fly-region" { module "fly-region" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/fly-region/coder" source = "registry.coder.com/modules/fly-region/coder"
version = "1.0.2" version = "1.0.2"
default = "ams" default = "ams"
@ -46,6 +48,7 @@ Set custom icons and names with their respective maps.
```tf ```tf
module "fly-region" { module "fly-region" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/fly-region/coder" source = "registry.coder.com/modules/fly-region/coder"
version = "1.0.2" version = "1.0.2"
default = "ams" default = "ams"

@ -13,6 +13,7 @@ This module adds Google Cloud Platform regions to your Coder template.
```tf ```tf
module "gcp_region" { module "gcp_region" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/gcp-region/coder" source = "registry.coder.com/modules/gcp-region/coder"
version = "1.0.12" version = "1.0.12"
regions = ["us", "europe"] regions = ["us", "europe"]
@ -33,6 +34,7 @@ Note: setting `gpu_only = true` and using a default region without GPU support,
```tf ```tf
module "gcp_region" { module "gcp_region" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/gcp-region/coder" source = "registry.coder.com/modules/gcp-region/coder"
version = "1.0.12" version = "1.0.12"
default = ["us-west1-a"] default = ["us-west1-a"]
@ -49,6 +51,7 @@ resource "google_compute_instance" "example" {
```tf ```tf
module "gcp_region" { module "gcp_region" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/gcp-region/coder" source = "registry.coder.com/modules/gcp-region/coder"
version = "1.0.12" version = "1.0.12"
regions = ["europe-west"] regions = ["europe-west"]
@ -64,6 +67,7 @@ resource "google_compute_instance" "example" {
```tf ```tf
module "gcp_region" { module "gcp_region" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/gcp-region/coder" source = "registry.coder.com/modules/gcp-region/coder"
version = "1.0.12" version = "1.0.12"
regions = ["us", "europe"] regions = ["us", "europe"]

@ -13,6 +13,7 @@ This module allows you to automatically clone a repository by URL and skip if it
```tf ```tf
module "git-clone" { module "git-clone" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/git-clone/coder" source = "registry.coder.com/modules/git-clone/coder"
version = "1.0.18" version = "1.0.18"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -26,6 +27,7 @@ module "git-clone" {
```tf ```tf
module "git-clone" { module "git-clone" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/git-clone/coder" source = "registry.coder.com/modules/git-clone/coder"
version = "1.0.18" version = "1.0.18"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -40,6 +42,7 @@ To use with [Git Authentication](https://coder.com/docs/v2/latest/admin/git-prov
```tf ```tf
module "git-clone" { module "git-clone" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/git-clone/coder" source = "registry.coder.com/modules/git-clone/coder"
version = "1.0.18" version = "1.0.18"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -65,6 +68,7 @@ data "coder_parameter" "git_repo" {
# Clone the repository for branch `feat/example` # Clone the repository for branch `feat/example`
module "git_clone" { module "git_clone" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/git-clone/coder" source = "registry.coder.com/modules/git-clone/coder"
version = "1.0.18" version = "1.0.18"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -73,23 +77,25 @@ module "git_clone" {
# Create a code-server instance for the cloned repository # Create a code-server instance for the cloned repository
module "code-server" { module "code-server" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/code-server/coder" source = "registry.coder.com/modules/code-server/coder"
version = "1.0.18" version = "1.0.18"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
order = 1 order = 1
folder = "/home/${local.username}/${module.git_clone.folder_name}" folder = "/home/${local.username}/${module.git_clone[count.index].folder_name}"
} }
# Create a Coder app for the website # Create a Coder app for the website
resource "coder_app" "website" { resource "coder_app" "website" {
count = data.coder_workspace.me.start_count
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
order = 2 order = 2
slug = "website" slug = "website"
external = true external = true
display_name = module.git_clone.folder_name display_name = module.git_clone[count.index].folder_name
url = module.git_clone.web_url url = module.git_clone[count.index].web_url
icon = module.git_clone.git_provider != "" ? "/icon/${module.git_clone.git_provider}.svg" : "/icon/git.svg" icon = module.git_clone[count.index].git_provider != "" ? "/icon/${module.git_clone[count.index].git_provider}.svg" : "/icon/git.svg"
count = module.git_clone.web_url != "" ? 1 : 0 count = module.git_clone[count.index].web_url != "" ? 1 : 0
} }
``` ```
@ -97,6 +103,7 @@ Configuring `git-clone` for a self-hosted GitHub Enterprise Server running at `g
```tf ```tf
module "git-clone" { module "git-clone" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/git-clone/coder" source = "registry.coder.com/modules/git-clone/coder"
version = "1.0.18" version = "1.0.18"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -115,6 +122,7 @@ To GitLab clone with a specific branch like `feat/example`
```tf ```tf
module "git-clone" { module "git-clone" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/git-clone/coder" source = "registry.coder.com/modules/git-clone/coder"
version = "1.0.18" version = "1.0.18"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -126,6 +134,7 @@ Configuring `git-clone` for a self-hosted GitLab running at `gitlab.example.com`
```tf ```tf
module "git-clone" { module "git-clone" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/git-clone/coder" source = "registry.coder.com/modules/git-clone/coder"
version = "1.0.18" version = "1.0.18"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -146,6 +155,7 @@ For example, to clone the `feat/example` branch:
```tf ```tf
module "git-clone" { module "git-clone" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/git-clone/coder" source = "registry.coder.com/modules/git-clone/coder"
version = "1.0.18" version = "1.0.18"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -162,6 +172,7 @@ For example, this will clone into the `~/projects/coder/coder-dev` folder:
```tf ```tf
module "git-clone" { module "git-clone" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/git-clone/coder" source = "registry.coder.com/modules/git-clone/coder"
version = "1.0.18" version = "1.0.18"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id

@ -18,6 +18,7 @@ This module has a chance of conflicting with the user's dotfiles / the personali
```tf ```tf
module "git-commit-signing" { module "git-commit-signing" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/git-commit-signing/coder" source = "registry.coder.com/modules/git-commit-signing/coder"
version = "1.0.11" version = "1.0.11"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id

@ -13,6 +13,7 @@ Runs a script that updates git credentials in the workspace to match the user's
```tf ```tf
module "git-config" { module "git-config" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/git-config/coder" source = "registry.coder.com/modules/git-config/coder"
version = "1.0.15" version = "1.0.15"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -27,6 +28,7 @@ TODO: Add screenshot
```tf ```tf
module "git-config" { module "git-config" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/git-config/coder" source = "registry.coder.com/modules/git-config/coder"
version = "1.0.15" version = "1.0.15"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -40,6 +42,7 @@ TODO: Add screenshot
```tf ```tf
module "git-config" { module "git-config" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/git-config/coder" source = "registry.coder.com/modules/git-config/coder"
version = "1.0.15" version = "1.0.15"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id

@ -13,6 +13,7 @@ Templates that utilize Github External Auth can automatically ensure that the Co
```tf ```tf
module "github-upload-public-key" { module "github-upload-public-key" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/github-upload-public-key/coder" source = "registry.coder.com/modules/github-upload-public-key/coder"
version = "1.0.15" version = "1.0.15"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -45,6 +46,7 @@ data "coder_external_auth" "github" {
} }
module "github-upload-public-key" { module "github-upload-public-key" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/github-upload-public-key/coder" source = "registry.coder.com/modules/github-upload-public-key/coder"
version = "1.0.15" version = "1.0.15"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id

@ -13,6 +13,7 @@ This module adds a JetBrains Gateway Button to open any workspace with a single
```tf ```tf
module "jetbrains_gateway" { module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/jetbrains-gateway/coder" source = "registry.coder.com/modules/jetbrains-gateway/coder"
version = "1.0.25" version = "1.0.25"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -31,6 +32,7 @@ module "jetbrains_gateway" {
```tf ```tf
module "jetbrains_gateway" { module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/jetbrains-gateway/coder" source = "registry.coder.com/modules/jetbrains-gateway/coder"
version = "1.0.25" version = "1.0.25"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -45,6 +47,7 @@ module "jetbrains_gateway" {
```tf ```tf
module "jetbrains_gateway" { module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/jetbrains-gateway/coder" source = "registry.coder.com/modules/jetbrains-gateway/coder"
version = "1.0.25" version = "1.0.25"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -60,6 +63,7 @@ module "jetbrains_gateway" {
```tf ```tf
module "jetbrains_gateway" { module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/jetbrains-gateway/coder" source = "registry.coder.com/modules/jetbrains-gateway/coder"
version = "1.0.25" version = "1.0.25"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -85,6 +89,7 @@ module "jetbrains_gateway" {
```tf ```tf
module "jetbrains_gateway" { module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/jetbrains-gateway/coder" source = "registry.coder.com/modules/jetbrains-gateway/coder"
version = "1.0.25" version = "1.0.25"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -103,6 +108,7 @@ Due to the highest priority of the `ide_download_link` parameter in the `(jetbra
```tf ```tf
module "jetbrains_gateway" { module "jetbrains_gateway" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/jetbrains-gateway/coder" source = "registry.coder.com/modules/jetbrains-gateway/coder"
version = "1.0.25" version = "1.0.25"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id

@ -16,6 +16,7 @@ Install the JF CLI and authenticate package managers with Artifactory using OAut
```tf ```tf
module "jfrog" { module "jfrog" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/jfrog-oauth/coder" source = "registry.coder.com/modules/jfrog-oauth/coder"
version = "1.0.19" version = "1.0.19"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -44,6 +45,7 @@ Configure the Python pip package manager to fetch packages from Artifactory whil
```tf ```tf
module "jfrog" { module "jfrog" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/jfrog-oauth/coder" source = "registry.coder.com/modules/jfrog-oauth/coder"
version = "1.0.19" version = "1.0.19"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -72,6 +74,7 @@ The [JFrog extension](https://open-vsx.org/extension/JFrog/jfrog-vscode-extensio
```tf ```tf
module "jfrog" { module "jfrog" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/jfrog-oauth/coder" source = "registry.coder.com/modules/jfrog-oauth/coder"
version = "1.0.19" version = "1.0.19"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -95,8 +98,8 @@ provider "docker" {
# ... # ...
registry_auth { registry_auth {
address = "https://example.jfrog.io/artifactory/api/docker/REPO-KEY" address = "https://example.jfrog.io/artifactory/api/docker/REPO-KEY"
username = module.jfrog.username username = try(module.jfrog[0].username, "")
password = module.jfrog.access_token password = try(module.jfrog[0].access_token, "")
} }
} }
``` ```

@ -15,6 +15,7 @@ A module that adds Jupyter Notebook in your Coder template.
```tf ```tf
module "jupyter-notebook" { module "jupyter-notebook" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/jupyter-notebook/coder" source = "registry.coder.com/modules/jupyter-notebook/coder"
version = "1.0.19" version = "1.0.19"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id

@ -15,6 +15,7 @@ A module that adds JupyterLab in your Coder template.
```tf ```tf
module "jupyterlab" { module "jupyterlab" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/jupyterlab/coder" source = "registry.coder.com/modules/jupyterlab/coder"
version = "1.0.23" version = "1.0.23"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id

@ -13,6 +13,7 @@ Automatically install [KasmVNC](https://kasmweb.com/kasmvnc) in a workspace, and
```tf ```tf
module "kasmvnc" { module "kasmvnc" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/kasmvnc/coder" source = "registry.coder.com/modules/kasmvnc/coder"
version = "1.0.23" version = "1.0.23"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id

@ -13,6 +13,7 @@ Automatically installs [Node.js](https://github.com/nodejs/node) via [nvm](https
```tf ```tf
module "nodejs" { module "nodejs" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/nodejs/coder" source = "registry.coder.com/modules/nodejs/coder"
version = "1.0.10" version = "1.0.10"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -25,6 +26,7 @@ This installs multiple versions of Node.js:
```tf ```tf
module "nodejs" { module "nodejs" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/nodejs/coder" source = "registry.coder.com/modules/nodejs/coder"
version = "1.0.10" version = "1.0.10"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -43,6 +45,7 @@ A example with all available options:
```tf ```tf
module "nodejs" { module "nodejs" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/nodejs/coder" source = "registry.coder.com/modules/nodejs/coder"
version = "1.0.10" version = "1.0.10"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id

@ -13,6 +13,7 @@ Run a script on workspace start that allows developers to run custom commands to
```tf ```tf
module "personalize" { module "personalize" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/personalize/coder" source = "registry.coder.com/modules/personalize/coder"
version = "1.0.2" version = "1.0.2"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id

@ -56,6 +56,7 @@ slackme npm run long-build
```tf ```tf
module "slackme" { module "slackme" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/slackme/coder" source = "registry.coder.com/modules/slackme/coder"
version = "1.0.2" version = "1.0.2"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -72,6 +73,7 @@ slackme npm run long-build
```tf ```tf
module "slackme" { module "slackme" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/slackme/coder" source = "registry.coder.com/modules/slackme/coder"
version = "1.0.2" version = "1.0.2"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id

@ -14,6 +14,7 @@ This module lets you authenticate with [Hashicorp Vault](https://www.vaultprojec
```tf ```tf
module "vault" { module "vault" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/vault-github/coder" source = "registry.coder.com/modules/vault-github/coder"
version = "1.0.7" version = "1.0.7"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -45,6 +46,7 @@ To configure the Vault module, you must set up a Vault GitHub auth method. See t
```tf ```tf
module "vault" { module "vault" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/vault-github/coder" source = "registry.coder.com/modules/vault-github/coder"
version = "1.0.7" version = "1.0.7"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -57,6 +59,7 @@ module "vault" {
```tf ```tf
module "vault" { module "vault" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/vault-github/coder" source = "registry.coder.com/modules/vault-github/coder"
version = "1.0.7" version = "1.0.7"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -70,6 +73,7 @@ module "vault" {
```tf ```tf
module "vault" { module "vault" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/vault-github/coder" source = "registry.coder.com/modules/vault-github/coder"
version = "1.0.7" version = "1.0.7"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id

@ -14,6 +14,7 @@ This module lets you authenticate with [Hashicorp Vault](https://www.vaultprojec
```tf ```tf
module "vault" { module "vault" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/vault-jwt/coder" source = "registry.coder.com/modules/vault-jwt/coder"
version = "1.0.20" version = "1.0.20"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -40,6 +41,7 @@ curl -H "X-Vault-Token: ${VAULT_TOKEN}" -X GET "${VAULT_ADDR}/v1/coder/secrets/d
```tf ```tf
module "vault" { module "vault" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/vault-jwt/coder" source = "registry.coder.com/modules/vault-jwt/coder"
version = "1.0.20" version = "1.0.20"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -55,6 +57,7 @@ module "vault" {
data "coder_workspace_owner" "me" {} data "coder_workspace_owner" "me" {}
module "vault" { module "vault" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/vault-jwt/coder" source = "registry.coder.com/modules/vault-jwt/coder"
version = "1.0.20" version = "1.0.20"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -67,6 +70,7 @@ module "vault" {
```tf ```tf
module "vault" { module "vault" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/vault-jwt/coder" source = "registry.coder.com/modules/vault-jwt/coder"
version = "1.0.20" version = "1.0.20"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id

@ -13,6 +13,7 @@ Automatically install [Visual Studio Code Server](https://code.visualstudio.com/
```tf ```tf
module "vscode-web" { module "vscode-web" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/vscode-web/coder" source = "registry.coder.com/modules/vscode-web/coder"
version = "1.0.22" version = "1.0.22"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -28,6 +29,7 @@ module "vscode-web" {
```tf ```tf
module "vscode-web" { module "vscode-web" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/vscode-web/coder" source = "registry.coder.com/modules/vscode-web/coder"
version = "1.0.22" version = "1.0.22"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -41,6 +43,7 @@ module "vscode-web" {
```tf ```tf
module "vscode-web" { module "vscode-web" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/vscode-web/coder" source = "registry.coder.com/modules/vscode-web/coder"
version = "1.0.22" version = "1.0.22"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
@ -55,6 +58,7 @@ Configure VS Code's [settings.json](https://code.visualstudio.com/docs/getstarte
```tf ```tf
module "vscode-web" { module "vscode-web" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/vscode-web/coder" source = "registry.coder.com/modules/vscode-web/coder"
version = "1.0.22" version = "1.0.22"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id

@ -14,9 +14,9 @@ Enable Remote Desktop + a web based client on Windows workspaces, powered by [de
```tf ```tf
# AWS example. See below for examples of using this module with other providers # AWS example. See below for examples of using this module with other providers
module "windows_rdp" { module "windows_rdp" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/windows-rdp/coder" source = "registry.coder.com/modules/windows-rdp/coder"
version = "1.0.18" version = "1.0.18"
count = data.coder_workspace.me.start_count
agent_id = resource.coder_agent.main.id agent_id = resource.coder_agent.main.id
resource_id = resource.aws_instance.dev.id resource_id = resource.aws_instance.dev.id
} }
@ -32,9 +32,9 @@ module "windows_rdp" {
```tf ```tf
module "windows_rdp" { module "windows_rdp" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/windows-rdp/coder" source = "registry.coder.com/modules/windows-rdp/coder"
version = "1.0.18" version = "1.0.18"
count = data.coder_workspace.me.start_count
agent_id = resource.coder_agent.main.id agent_id = resource.coder_agent.main.id
resource_id = resource.aws_instance.dev.id resource_id = resource.aws_instance.dev.id
} }
@ -44,9 +44,9 @@ module "windows_rdp" {
```tf ```tf
module "windows_rdp" { module "windows_rdp" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/modules/windows-rdp/coder" source = "registry.coder.com/modules/windows-rdp/coder"
version = "1.0.18" version = "1.0.18"
count = data.coder_workspace.me.start_count
agent_id = resource.coder_agent.main.id agent_id = resource.coder_agent.main.id
resource_id = resource.google_compute_instance.dev[0].id resource_id = resource.google_compute_instance.dev[0].id
} }

Loading…
Cancel
Save