code-server

bvilnis/code-server/digitalocean

Terraform Module HCL DIGITALOCEAN

Terraform module which creates an OAuth2-authenticated Code Server on Digital Ocean.

Install
module "code-server" {
source = "bvilnis/code-server/digitalocean"
version = "0.1.1"
}
plain text: /constructs/tfmod-bvilnis-code-server-digitalocean/install.txt
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (12)
NameTypeDescriptionDefault
do_tokenstringDigital Ocean API token. required
domain_namestringA record value for your Digital Ocean managed domain (eg. 'mydomain.com' or 'sub required
oauth2_client_secretstringOAuth2 client secret key for chosen OAuth2 provider. required
github_usernamestringGitHub username for importing public SSH keys associated to the GitHub account. required
oauth2_client_idstringOAuth2 client ID key for chosen OAuth2 provider. required
oauth2_providerstringOAuth2 provider. required
storage_sizenumberSize (in GB) for immutable volume mounted to `/home`.20
droplet_sizestringDigital Ocean droplet size."s-2vcpu-2gb"
email_addressstringIf set, OAuth2 Proxy will only authenticate supplied email address rather than e""
hostnamestringHostname for the EC2 instance."code-server"
regionstringDigital Ocean regional endpoint."sfo2"
usernamestringUsername for the non-root user on the droplet."coder"
Outputs (7)
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.
Resources (10)
digitalocean_domaindigitalocean_dropletdigitalocean_firewalldigitalocean_floating_ipdigitalocean_floating_ip_assignmentdigitalocean_projectdigitalocean_volumedigitalocean_volume_attachmentdigitalocean_vpcrandom_password
Details
FrameworkTerraform Module
LanguageHCL
Version0.1.1
Cloud DIGITALOCEAN
★ Stars0
Forks0
Total downloads782
Inputs12
Outputs7
Resources10
LicenseApache-2.0
Namespacebvilnis
Updated