@@ -13,6 +13,7 @@ Automatically install [code-server](https://github.com/coder/code-server) in a w
1313
1414``` tf
1515module "code-server" {
16+ count = data.coder_workspace.me.start_count
1617 source = "registry.coder.com/modules/code-server/coder"
1718 version = "1.0.26"
1819 agent_id = coder_agent.example.id
@@ -27,6 +28,7 @@ module "code-server" {
2728
2829``` tf
2930module "code-server" {
31+ count = data.coder_workspace.me.start_count
3032 source = "registry.coder.com/modules/code-server/coder"
3133 version = "1.0.26"
3234 agent_id = coder_agent.example.id
@@ -40,6 +42,7 @@ Install the Dracula theme from [OpenVSX](https://open-vsx.org/):
4042
4143``` tf
4244module "code-server" {
45+ count = data.coder_workspace.me.start_count
4346 source = "registry.coder.com/modules/code-server/coder"
4447 version = "1.0.26"
4548 agent_id = coder_agent.example.id
@@ -57,6 +60,7 @@ Configure VS Code's [settings.json](https://code.visualstudio.com/docs/getstarte
5760
5861``` tf
5962module "code-server" {
63+ count = data.coder_workspace.me.start_count
6064 source = "registry.coder.com/modules/code-server/coder"
6165 version = "1.0.26"
6266 agent_id = coder_agent.example.id
@@ -73,6 +77,7 @@ Just run code-server in the background, don't fetch it from GitHub:
7377
7478``` tf
7579module "code-server" {
80+ count = data.coder_workspace.me.start_count
7681 source = "registry.coder.com/modules/code-server/coder"
7782 version = "1.0.26"
7883 agent_id = coder_agent.example.id
@@ -88,6 +93,7 @@ Run an existing copy of code-server if found, otherwise download from GitHub:
8893
8994``` tf
9095module "code-server" {
96+ count = data.coder_workspace.me.start_count
9197 source = "registry.coder.com/modules/code-server/coder"
9298 version = "1.0.26"
9399 agent_id = coder_agent.example.id
@@ -100,6 +106,7 @@ Just run code-server in the background, don't fetch it from GitHub:
100106
101107``` tf
102108module "code-server" {
109+ count = data.coder_workspace.me.start_count
103110 source = "registry.coder.com/modules/code-server/coder"
104111 version = "1.0.26"
105112 agent_id = coder_agent.example.id
0 commit comments