Skip to content

Commit 703424c

Browse files
committed
Fix docs
1 parent 11ff7f9 commit 703424c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

docs/resources/script.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,17 @@ Use this resource to run a script from an agent.
1818
### Required
1919

2020
- `agent_id` (String) The "id" property of a "coder_agent" resource to associate with.
21+
- `display_name` (String) The display name of the script to display logs in the dashboard.
2122
- `script` (String) The script to run.
2223

2324
### Optional
2425

25-
- `login_before_ready` (Boolean) This option defines whether or not the user can (by default) login to the workspace before it is ready. Ready means that e.g. the script is done and has exited. When enabled, users may see an incomplete workspace when logging in.
26+
- `cron` (String) The cron schedule to run the script on. This is a cron expression.
27+
- `icon` (String) A URL to an icon that will display in the dashboard. View built-in icons here: https://github.com/coder/coder/tree/main/site/static/icon. Use a built-in icon with `data.coder_workspace.me.access_url + "/icon/<path>"`.
28+
- `log_path` (String) The path of a file to write the logs to. If relative, it will be appended to tmp.
2629
- `run_on_start` (Boolean) This option defines whether or not the script should run when the agent starts.
2730
- `run_on_stop` (Boolean) This option defines whether or not the script should run when the agent stops.
28-
- `schedule` (String) The schedule to run the script on. This is a cron expression.
31+
- `start_blocks_login` (Boolean) This option defines whether or not the user can (by default) login to the workspace before this script completes running on start. When enabled, users may see an incomplete workspace when logging in.
2932
- `timeout` (Number) Time in seconds until the agent lifecycle status is marked as timed out, this happens when the script has not completed (exited) in the given time.
3033

3134
### Read-Only

provider/script.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func scriptResource() *schema.Resource {
4545
"icons here: https://github.com/coder/coder/tree/main/site/static/icon. Use a " +
4646
"built-in icon with `data.coder_workspace.me.access_url + \"/icon/<path>\"`.",
4747
},
48-
"source": {
48+
"script": {
4949
ForceNew: true,
5050
Type: schema.TypeString,
5151
Required: true,

0 commit comments

Comments
 (0)