spoke

hamfist/spoke/digitalocean

Terraform Module HCL DIGITALOCEAN

A Spoke on a DigitalOcean with a Terraform (mirror)

Install
module "spoke" {
source = "hamfist/spoke/digitalocean"
version = "0.2.3"
}
plain text: /constructs/tfmod-hamfist-spoke-digitalocean/install.txt
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (15)
NameTypeDescriptionDefault
cert_private_keystringCertificate key to pass to nginx required
cert_certificatestringCertificate with leaf and intermediates to pass to nginx required
server_namestringServer name used in nginx config required
base_urlstringFully qualified https URL of the app required
ssh_keyslist(string)List of ssh public keys to pass to droplet provisioning required
spoke_versionstringGit ref of MoveOnOrg/Spoke to deploy"v8.0"
resource_prefixstringPrefix prepended to resource names"spoke-"
nginx_site_override_confstringComplete nginx site configuration override""
node_envstringValue defined at build time and run time as NODE_ENV"production"
portstringTCP port used to communicate between droplet and nginx"3000"
regionstringRegion in which all resources will be provisioned"nyc1"
node_optionsstringValue defined at build time and run time as NODE_OPTIONS"--max_old_space_size=8192"
droplet_imagestringImage to use when provisioning app droplet"ubuntu-20-04-x64"
droplet_sizestringSize value passed when provisioning app droplet"s-1vcpu-1gb"
envmap(string)Arbitrary *additional* environment variables passed at build time and run time{}
Outputs (4)
floating_ip_urn — urn of the floating IP address assigned to the droplet suitable for adding to project resources
droplet_urn — urn of the droplet suitable for adding to project resources
droplet_ipv4_address — ipv4 address of the droplet
floating_ip_address — floating IP address assigned to the droplet suitable for creating a DNS A record
Resources (6)
digitalocean_dropletdigitalocean_firewalldigitalocean_floating_ipdigitalocean_ssh_keynull_resourcerandom_string
Details
FrameworkTerraform Module
LanguageHCL
Version0.2.3
Cloud DIGITALOCEAN
★ Stars0
Forks2
Total downloads785
Inputs15
Outputs4
Resources6
LicenseMIT
Namespacehamfist
Updated