Terraform module for Alibaba Cloud
Go to file
Jakub Sokołowski 7b5170d001
upgrade provider from 1.159.0 to 1.219.0
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-03-18 14:49:10 +01:00
README.md switch domain from statusim.net to status.im 2024-03-14 18:28:36 +01:00
main.tf ignore changes to instance system_disk_size 2022-11-08 12:41:41 +01:00
outputs.tf refactor to use for_each for all resources 2022-03-09 13:07:31 +01:00
variables.tf switch domain from statusim.net to status.im 2024-03-14 18:28:36 +01:00
versions.tf upgrade provider from 1.159.0 to 1.219.0 2024-03-18 14:49:10 +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 "alibaba-cloud" {
  source = "github.com/status-im/infra-tf-alibaba-cloud"
}

More details.

Variables

  • Scaling
    • host_count - Number of hosts to start in this zone.
    • image_regex - Regex for image used to create host. (default: ubuntu_20_04_x64_20G_alibase_.*.vhd)
    • type - Type of machine to deploy. (default: ecs.t5-lc2m1.nano)
    • zone - Specific zone in which to deploy hosts. (default: cn-hongkong-c)
    • max_band_out - Maximum outgoing bandwidth to the public network, measured in Mbps. (default: 30)
    • root_vol_type - I/O optimization type of root volume. (default: cloud_ssd)
    • root_vol_size - Size in GiB of system root volume. (default: 20)
    • data_vol_type - I/O optimization type of extra data volume. (default: cloud_efficiency)
    • data_vol_size - Size in GiB of an extra data volume to attach to the instance. (default: 0)
  • Billing
    • charge - Way in which the instance is paid for. (default: PostPaid)
    • period - Time period in which we pay for instances. (default: Month)
  • 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)
    • key_pair - SSH key pair used to log in to instance. (default: jakub_status.im)
    • open_tcp_ports - TCP port ranges to enable access from outside. Format: N-N (default: [])
    • open_udp_ports - UDL port ranges to enable access from outside. Format: N-N (default: [])
    • blocked_ips - List of blocked IP ranges. Format: CIDR (default: [])
  • DNS
    • cf_zone_id - CloudFlare DNS domain zone ID. (ID for status.im)
    • domain - DNS Domain for hostnames. (default: status.im)