code-server
bvilnis/code-server/aws
Terraform module which creates an OAuth2-authenticated Code Server on AWS.
Install
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)
| Name | Type | Description | Default |
|---|---|---|---|
| oauth2_client_id | string | OAuth2 client ID key for chosen OAuth2 provider | required |
| route53_zone_id | string | Route53 hosted zone ID for `domain_name` | required |
| domain_name | string | A record value for supplied hosted zone (eg. 'mydomain.com' or 'subdomain.mydoma | required |
| github_username | string | GitHub username for importing public SSH keys associated to the GitHub account | required |
| oauth2_client_secret | string | OAuth2 client secret key for chosen OAuth2 provider | required |
| oauth2_provider | string | OAuth2 provider | required |
| instance_size | string | EC2 instance size | "t3.small" |
| storage_size | number | Size (in GB) for immutable EBS volume mounted to `/home` | 20 |
| email_address | string | If set, OAuth2 Proxy will only authenticate supplied email address rather than e | "" |
| region | string | AWS regional endpoint | "us-east-1" |
| username | string | Username for the non-root user on the EC2 instance | "coder" |
| hostname | string | Hostname for the EC2 instance | "code-server" |
Outputs (8)
vpc_id — The ID of the VPCdomain_name — The domain name recordec2_id — EC2 instance IDec2_private_ip — EC2 instance private IP addressec2_public_ip — EC2 instance public IP addresspublic_subnets — List of IDs of public subnetspublic_subnet_cidr_blocks — List of cidr_blocks of public subnetssecurity_group_id — The ID of the security groupResources (3)
Details
Similar packages
Terraform module for building and deploying Next.js apps to AWS. Supports SSR (L
Terraform module for provisioning an EKS cluster
Terraform module to generate well-formed JSON documents (container definitions)
Terraform module that provision an S3 bucket to store the terraform.tfstate file