Terraform ETCD module
module "etcd" {
source = "github.com/kalbasit/tf-etcd"
aws_key_name = "ec2-key-name"
ami = "ami-6d138f7a"
discovery_url = "https://discovery.etcd.io/d3c6482aeb0154d904f3ca44ce986610"
subnet_ids = ["subnet-b73bc4f5"]
sgs_ids = [
# out-pub allows instances to make connections to anywhere
"${module.sgs.out-pub}",
# in-self allows instances to contact each other on any protocol,
# any port.
"${module.sgs.in-self}",
]
}
name
The name of the clusterenv
The environment of the clustervpc_id
The ID of the VPC where the cluster is running onbastion_sg_id
The security group of the bastionaws_key_name
The AWS key name for the master nodescount
The number of etcd nodesami
The AMI for the etcd nodesflannel_cidr
The CIDR for the flannel networkinstance_type
The instance type for the etcd nodessubnet_ids
A list of subnet ids for the etcd nodes. It's recommanded to host the ETCD server on a private subnet.discovery_url
etcd2 discovery url. Usemake discovery_url
to generate a new onedisable_api_termination
Enable EC2 Termination protection
private_ips
A list of etcd private IPspublic_ips
A list of etcd public IPssg_id
The security group ID of the etcd nodes
All source code is licensed under the MIT License.