spoke
hamfist/spoke/digitalocean
A Spoke on a DigitalOcean with a Terraform (mirror)
terraform-digitalocean-spoke This is a terraform module that provisions a Spoke instance at DigitalOcean. Terraform versions This module is compatible with Terraform version 0.13+. Usage A typical production deployment that uses PASSPORT_STRATEGY=auth0, DEFAULT_SERVICE=twilio, and a direct SMTP connection for email might look like this: ``hcl module "digitalocean_spoke" { source = "hamfist/spoke/digitalocean" server_name = "spoke.example.org" base_url = "https://spoke.example.org" resource_prefix = "example-spoke-" region = "nyc1" ssh_keys = [file("path/to/id_rsa.pub")] cert_private_key = file("path/to/cert.key") cert_certificate = file("path/to/cert.crt") env = { AUTH0_CLIENT_ID = "8570285697946a0cc03f8049b9309d7e" AUTH0_CLIENT_SECRET = "1194435d32479ab99ed51a0a5f244cd5" AUTH0_DOMAIN = "e
| Name | Type | Description | Default |
|---|---|---|---|
| cert_private_key | string | Certificate key to pass to nginx | required |
| cert_certificate | string | Certificate with leaf and intermediates to pass to nginx | required |
| server_name | string | Server name used in nginx config | required |
| base_url | string | Fully qualified https URL of the app | required |
| ssh_keys | list(string) | List of ssh public keys to pass to droplet provisioning | required |
| spoke_version | string | Git ref of MoveOnOrg/Spoke to deploy | "v8.0" |
| resource_prefix | string | Prefix prepended to resource names | "spoke-" |
| nginx_site_override_conf | string | Complete nginx site configuration override | "" |
| node_env | string | Value defined at build time and run time as NODE_ENV | "production" |
| port | string | TCP port used to communicate between droplet and nginx | "3000" |
| region | string | Region in which all resources will be provisioned | "nyc1" |
| node_options | string | Value defined at build time and run time as NODE_OPTIONS | "--max_old_space_size=8192" |
| droplet_image | string | Image to use when provisioning app droplet | "ubuntu-20-04-x64" |
| droplet_size | string | Size value passed when provisioning app droplet | "s-1vcpu-1gb" |
| env | map(string) | Arbitrary *additional* environment variables passed at build time and run time | {} |
floating_ip_urn — urn of the floating IP address assigned to the droplet suitable for adding to project resourcesdroplet_urn — urn of the droplet suitable for adding to project resourcesdroplet_ipv4_address — ipv4 address of the dropletfloating_ip_address — floating IP address assigned to the droplet suitable for creating a DNS A record