code-server
bvilnis/code-server/digitalocean
Terraform module which creates an OAuth2-authenticated Code Server on Digital Ocean.
Digital Ocean Code Server Terraform module Terraform module which creates an OAuth2-authenticated Code Server on Digital Ocean. Usage ``hcl //-------------------------------------------------------------------- // Variables variable "oauth2_client_id" {} variable "oauth2_client_secret" {} //-------------------------------------------------------------------- // Modules module "code-server" { source = "bvilnis/code-server/digitalocean" version = "0.1.0" domain_name = "ide.mydomain.com" github_username = "bvilnis" oauth2_client_id = var.oauth2_client_id oauth2_client_secret = var.oauth2_client_secret oauth2_provider = "google" } ` ` terraform apply \ -var="do_token= " \ -var="oauth2_client_id= " \ -var="oauth2_client_secret= " ` Notes The oauth_client_id and oauth_client_secret variables sho
| Name | Type | Description | Default |
|---|---|---|---|
| do_token | string | Digital Ocean API token. | required |
| domain_name | string | A record value for your Digital Ocean managed domain (eg. 'mydomain.com' or 'sub | required |
| oauth2_client_secret | string | OAuth2 client secret key for chosen OAuth2 provider. | required |
| github_username | string | GitHub username for importing public SSH keys associated to the GitHub account. | required |
| oauth2_client_id | string | OAuth2 client ID key for chosen OAuth2 provider. | required |
| oauth2_provider | string | OAuth2 provider. | required |
| storage_size | number | Size (in GB) for immutable volume mounted to `/home`. | 20 |
| droplet_size | string | Digital Ocean droplet size. | "s-2vcpu-2gb" |
| email_address | string | If set, OAuth2 Proxy will only authenticate supplied email address rather than e | "" |
| hostname | string | Hostname for the EC2 instance. | "code-server" |
| region | string | Digital Ocean regional endpoint. | "sfo2" |
| username | string | Username for the non-root user on the droplet. | "coder" |
volume_id — The volume ID for the immutable disk mounted to `/home`.vpc_id — The VPC ID.domain_name — The domain name record.droplet_id — The Droplet ID.droplet_private_ip — The Droplet private IP address.droplet_public_ip — The Droplet public IP address.firewall_id — The firewall ID.