Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (28 sloc) 783 Bytes
module "vpc20" {
source = "./modules/vpc"
name = "etcd"
vpc_cidr_block = "10.20.0.0/16"
vpc_dns_hostnames = "true"
vpc_dns_support = "true"
subnet_map_pub_ip = "true"
}
module "etcd" {
source = "./modules/instance-cluster"
name = "etcd"
ami = "${data.aws_ami.node_ami.id}"
type = "${var.node_type}"
assign_pub_ip = true
ssh_key = "${var.key_pair}"
cluster_size = 3
subnet_list = ["${module.vpc20.subnet_id}"]
sec_group_list = ["${module.vpc20.default_sg_id}"]
role = "etcd"
}
module "vpc50" {
source = "./modules/vpc"
name = "k8s"
vpc_cidr_block = "10.50.0.0/16"
vpc_dns_hostnames = "true"
vpc_dns_support = "true"
subnet_map_pub_ip = "true"
}