coder/examples/templates/do-linux
Mathias Fredriksson a1212014df
chore(examples): Add `login_before_ready` and `startup_script_timeout` (#5880)
2023-01-27 21:01:48 +00:00
..
README.md chore: Add icons to templates (#5368) 2022-12-09 18:47:09 +00:00
cloud-config.yaml.tftpl feat: Add examples/templates/do-linux for Digital Ocean Droplets (#1749) 2022-05-27 20:04:43 +03:00
main.tf chore(examples): Add `login_before_ready` and `startup_script_timeout` (#5880) 2023-01-27 21:01:48 +00:00

README.md

name description tags icon
Develop in Linux on a Digital Ocean Droplet Get started with Linux development on a Digital Ocean Droplet.
cloud
digitalocean
/icon/do.png

do-linux

To deploy workspaces as DigitalOcean Droplets, you'll need:

  • DigitalOcean personal access token (PAT)

  • DigitalOcean project ID (you can get your project information via the doctl CLI by running doctl projects list)

    • Remove the following sections from the main.tf file if you don't want to associate your workspaces with a project:

      • variable "step2_do_project_id"
      • resource "digitalocean_project_resources" "project"
  • Optional: DigitalOcean SSH key ID (obtain via the doctl CLI by running doctl compute ssh-key list)

    • Note that this is only required for Fedora images to work.

Authentication

This template assumes that coderd is run in an environment that is authenticated with Digital Ocean. Obtain a Digital Ocean Personal Access Token and set the environment variable DIGITALOCEAN_TOKEN to the access token before starting coderd. For other ways to authenticate consult the Terraform docs.