You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/about/contributing/modules.md
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -110,7 +110,7 @@ Browse available modules at [registry.coder.com](https://registry.coder.com).
110
110
111
111
Every module consists of exactly four files:
112
112
113
-
```
113
+
```text
114
114
module-name/
115
115
├── main.tf # Terraform configuration with Coder resources
116
116
├── main.test.ts # Test suite
@@ -136,12 +136,14 @@ The Coder Terraform provider offers several resource types for different aspects
136
136
Execute commands during workspace lifecycle events. This is the primary mechanism for software installation, service configuration, and environment setup.
137
137
138
138
**When to use**:
139
+
139
140
- Installing software packages, binaries, or development tools
140
141
- Configuring services and generating configuration files
141
142
- Setting up directories, permissions, and initial workspace state
142
143
- Running background services or daemons
143
144
144
145
**Key properties**:
146
+
145
147
-`agent_id`: The Coder agent to execute the script on
146
148
-`display_name`: Name shown in the Coder dashboard during execution
147
149
-`run_on_start`: Execute when workspace starts (most common)
@@ -150,6 +152,7 @@ Execute commands during workspace lifecycle events. This is the primary mechanis
150
152
-`start_blocks_login`: Whether script completion is required before user access