code-server

bvilnis/code-server/aws

Terraform Module HCL AWS

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

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

AWS Code Server Terraform module Terraform module which creates an OAuth2-authenticated Code Server on AWS. Usage ``hcl //-------------------------------------------------------------------- // Variables variable "oauth2_client_id" {} variable "oauth2_client_secret" {} //-------------------------------------------------------------------- // Modules module "code-server" { source = "bvilnis/code-server/aws" version = "0.1.0" domain_name = "ide.mydomain.com" email_address = "[email protected]" github_username = "bvilnis" hostname = "code-server" instance_size = "t3.small" oauth2_client_id = var.oauth2_client_id oauth2_client_secret = var.oauth2_client_secret oauth2_provider = "google" region = "us-east-1" route_53_zone_id = "Z23ABC4XYZL05B" storage_size = 20 username = "coder" } ` ` terrafo

Inputs (12)
NameTypeDescriptionDefault
oauth2_client_idstringOAuth2 client ID key for chosen OAuth2 provider required
route53_zone_idstringRoute53 hosted zone ID for `domain_name` required
domain_namestringA record value for supplied hosted zone (eg. 'mydomain.com' or 'subdomain.mydoma required
github_usernamestringGitHub username for importing public SSH keys associated to the GitHub account required
oauth2_client_secretstringOAuth2 client secret key for chosen OAuth2 provider required
oauth2_providerstringOAuth2 provider required
instance_sizestringEC2 instance size"t3.small"
storage_sizenumberSize (in GB) for immutable EBS volume mounted to `/home`20
email_addressstringIf set, OAuth2 Proxy will only authenticate supplied email address rather than e""
regionstringAWS regional endpoint"us-east-1"
usernamestringUsername for the non-root user on the EC2 instance"coder"
hostnamestringHostname for the EC2 instance"code-server"
Outputs (8)
vpc_id — The ID of the VPC
domain_name — The domain name record
ec2_id — EC2 instance ID
ec2_private_ip — EC2 instance private IP address
ec2_public_ip — EC2 instance public IP address
public_subnets — List of IDs of public subnets
public_subnet_cidr_blocks — List of cidr_blocks of public subnets
security_group_id — The ID of the security group
Resources (3)
aws_eipaws_route53_recordrandom_password
Details
FrameworkTerraform Module
LanguageHCL
Version0.1.1
Cloud AWS
★ Stars14
Forks4
Total downloads6.2k
Inputs12
Outputs8
Resources3
LicenseApache-2.0
Namespacebvilnis
Updated