diff --git a/examples/templates/aws-linux/README.md b/examples/templates/aws-linux/README.md index eb65f01cd85d8..681224cc3269b 100644 --- a/examples/templates/aws-linux/README.md +++ b/examples/templates/aws-linux/README.md @@ -68,3 +68,9 @@ instances provisioned by Coder: ] } ``` + +## code-server + +`code-server` is installed via the `startup_script` argument in the `coder_agent` +resource block. The `coder_app` resource is defined to access `code-server` through +the dashboard UI over `localhost:13337`. diff --git a/examples/templates/aws-linux/main.tf b/examples/templates/aws-linux/main.tf index fcd9b88d7b1f4..a13b5fac877f9 100644 --- a/examples/templates/aws-linux/main.tf +++ b/examples/templates/aws-linux/main.tf @@ -76,6 +76,20 @@ resource "coder_agent" "main" { arch = "amd64" auth = "aws-instance-identity" os = "linux" + startup_script = <