This is a helper module used by Status internal repos like: infra-hq, infra-misc, infra-eth-cluster, or infra-swarm.
It allows for use of the following three cloud providers via one module:
Simply import the modue using the source
directive:
module "widget" {
source = "github.com/status-im/infra-tf-multi-provider"
count = 2
env = "widget"
group = "widget"
do_size = "s-1vcpu-2gb"
gc_size = "n1-standard-1"
ac_size = "ecs.sn1ne.large"
open_ports = ["1234-1234"]
}
- General
name
- Prefix of hostname before index. (default:node
)env
- Environment for these hosts, affects DNS entries.group
- Ansible group to assign hosts to.domain
- DNS Domain to update
- Scaling
count
- Number of hosts to run.do_size
- Size of host to provision in Digital Ocean. (default:s-1vcpu-1gb
)gc_size
- Size of host to provision in Google Cloud. (default:n1-standard-1
)ac_size
- Size of host to provision in Alibaba Cloud. (default:ecs.t5-lc1m1.small
)do_vol_size
- Size in GiB of extra volume for host. (default:0
)gc_vol_size
- Size in GiB of the host volume. (default:10
)
- Security
open_ports
- TCP ports to enable access from outside. (default:["80-80","443-443"]
)