Terraform module for Amazon Web Services
Go to file
Jakub Sokołowski 2e6c14f88c
versions: upgrade cloudflare from 3.26.0 to 4.26.0
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-03-14 23:28:58 +01:00
README.md switch domain from statusim.net to status.im 2024-03-14 18:24:48 +01:00
main.tf add CloudFlare AAAA record for IPv6 address 2024-03-14 16:13:23 +01:00
outputs.tf add public_ips_v6 to outputs 2024-03-14 16:09:03 +01:00
variables.tf switch domain from statusim.net to status.im 2024-03-14 18:24:48 +01:00
versions.tf versions: upgrade cloudflare from 3.26.0 to 4.26.0 2024-03-14 23:28:58 +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 "amazon-web-services" {
  source = "github.com/status-im/infra-tf-amazon-web-services"
}

More details.

Variables

  • Scaling
    • host_count - Number of hosts to start in this region.
    • image_name - OS image used to create host. (default: ubuntu-bionic-18.04-amd64)
    • image_owner - Idenitifier of AWS AMI image owner. (default: 099720109477)
    • type - Type of host to create. (default: t2.micro)
    • zone - Availability Zone in which the instance will be created. (default: eu-central-1a)
    • root_vol_size - Size in GiB of system rot volume. (default: 10 GB)
    • data_vol_size - Size in GiB of an extra volume to attach to the instance. (default: 0)
    • data_vol_type - Type of the data volume: standard, gp2, io1, sc1, st1. (default: standard)
    • data_vol_iops - Amount of IOPS to provision for the disk. Valid io1 or io2. (default: 1000)
  • 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.
  • Security
    • vpc_id - ID of the VPC for instances.
    • subnet_id - ID of the Subnet for instances.
    • secgroup_id - ID of the Security Group for instances.
    • keypair_name - User used to log in to instance (default: root)
    • 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: [])
  • Protection
    • disable_api_stop - Enables EC2 Instance Stop Protection. (default: false)
    • disable_api_termination - Enables EC2 Instance Termination Protection. (default: false)
    • auto_recovery - Automatic recovery behavior of the Instance. (default: default)
  • DNS
    • cf_zone_id - CloudFlare DNS domain zone ID. (ID for status.im)
    • domain - DNS Domain for hostnames. (default: status.im)