Terraform module for Digital Ocean
Go to file
Jakub Sokołowski db2e206ee2
versions: upgrade cloudflare from 3.26.0 to 4.26.0
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-03-14 23:29:01 +01:00
README.md switch domain from statusim.net to status.im 2024-03-14 18:28:52 +01:00
main.tf refactor to use for_each for all resources 2022-03-09 00:34:25 +01:00
outputs.tf refactor to use for_each for all resources 2022-03-09 00:34:25 +01:00
variables.tf switch domain from statusim.net to status.im 2024-03-14 18:28:52 +01:00
versions.tf versions: upgrade cloudflare from 3.26.0 to 4.26.0 2024-03-14 23:29:01 +01:00

README.md

Description

This is a helper module used by Status internal repos like: infra-hq, infra-misc, infra-eth-cluster, or infra-swarm.

Usage

Simply import the modue using the source directive:

module "digital-ocean" {
  source = "github.com/status-im/infra-tf-digital-ocean"
}

More details.

Variables

  • Scaling
    • host_count - Number of hosts to start in this region.
    • image - OS image used to create host. (default: ubuntu-18-04-x64)
    • type - Type of host to create. (default: s-1vcpu-1gb)
    • region - Region in which the host will be created. (default: ams3)
    • data_vol_size - Size in GiB of an extra data volume to attach to the dropplet. (default: 0)
  • General
    • name - Prefix of hostname before index. (default: node)
    • group - Name of Ansible group to add hosts to.
    • env - Environment for these hosts, affects DNS entries.
    • stage - Name of stage, like prod, dev, or staging.
  • Security
    • ssh_user - User used to log in to instance (default: root)
    • ssh_keys - Names of ssh public keys to add to created hosts.
    • open_tcp_ports - TCP port ranges to enable access from outside. Format: N-N (default: [])
    • open_udp_ports - UDP port ranges to enable access from outside. Format: N-N (default: [])
  • DNS
    • cf_zone_id - CloudFlare DNS domain zone ID. (ID for status.im)
    • domain - DNS Domain for hostnames. (default: status.im)