Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/resources/script.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ resource "coder_agent" "dev" {
}

resource "coder_script" "dotfiles" {
agent_id = coder_agent.dev.agent_id
agent_id = coder_agent.dev.id
display_name = "Dotfiles"
icon = "/icon/dotfiles.svg"
run_on_start = true
Expand All @@ -33,7 +33,7 @@ resource "coder_script" "dotfiles" {
}

resource "coder_script" "code-server" {
agent_id = coder_agent.dev.agent_id
agent_id = coder_agent.dev.id
display_name = "code-server"
icon = "/icon/code.svg"
run_on_start = true
Expand All @@ -44,7 +44,7 @@ resource "coder_script" "code-server" {
}

resource "coder_script" "nightly_update" {
agent_id = coder_agent.dev.agent_id
agent_id = coder_agent.dev.id
display_name = "Nightly update"
icon = "/icon/database.svg"
cron = "0 0 22 * * *" # Run at 22:00 (10 PM) every day
Expand All @@ -56,7 +56,7 @@ resource "coder_script" "nightly_update" {
}

resource "coder_script" "every_5_minutes" {
agent_id = coder_agent.dev.agent_id
agent_id = coder_agent.dev.id
display_name = "Health check"
icon = "/icon/heart.svg"
cron = "0 */5 * * * *" # Run every 5 minutes
Expand Down
8 changes: 4 additions & 4 deletions examples/resources/coder_script/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "coder_agent" "dev" {
}

resource "coder_script" "dotfiles" {
agent_id = coder_agent.dev.agent_id
agent_id = coder_agent.dev.id
display_name = "Dotfiles"
icon = "/icon/dotfiles.svg"
run_on_start = true
Expand All @@ -18,7 +18,7 @@ resource "coder_script" "dotfiles" {
}

resource "coder_script" "code-server" {
agent_id = coder_agent.dev.agent_id
agent_id = coder_agent.dev.id
display_name = "code-server"
icon = "/icon/code.svg"
run_on_start = true
Expand All @@ -29,7 +29,7 @@ resource "coder_script" "code-server" {
}

resource "coder_script" "nightly_update" {
agent_id = coder_agent.dev.agent_id
agent_id = coder_agent.dev.id
display_name = "Nightly update"
icon = "/icon/database.svg"
cron = "0 0 22 * * *" # Run at 22:00 (10 PM) every day
Expand All @@ -41,7 +41,7 @@ resource "coder_script" "nightly_update" {
}

resource "coder_script" "every_5_minutes" {
agent_id = coder_agent.dev.agent_id
agent_id = coder_agent.dev.id
display_name = "Health check"
icon = "/icon/heart.svg"
cron = "0 */5 * * * *" # Run every 5 minutes
Expand Down
Loading