forked from SaurabhDev/Installation-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Terraform-Kubernetes
48 lines (44 loc) · 1.8 KB
/
Terraform-Kubernetes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# EKS Terraform module
module "network" {
source = "./modules/network"
aws-region = "${var.aws-region}"
cluster-name1 = "${var.cluster-name1}"
cluster-name2 = "${var.cluster-name2}"
}
module "eks1" {
source = "./modules/eks-1"
cluster-name = "${var.cluster-name1}"
k8s-version = "${var.k8s-version}"
aws-region = "${var.aws-region}"
node-instance-type = "${var.node-instance-type}"
desired-capacity = "${var.desired-capacity}"
max-size = "${var.max-size}"
min-size = "${var.min-size}"
vpc-subnet1 = "${module.network.DMZSubnet1}"
vpc-subnet2 = "${module.network.DMZSubnet2}"
vpc-id = "${module.network.VPC}"
KeyName = "${var.KeyName}"
eks-worker-ami = "${var.eks-worker-ami}"
}
module "eks2" {
source = "./modules/eks-2"
cluster-name = "${var.cluster-name2}"
k8s-version = "${var.k8s-version}"
aws-region = "${var.aws-region}"
node-instance-type = "${var.node-instance-type}"
desired-capacity = "${var.desired-capacity}"
max-size = "${var.max-size}"
min-size = "${var.min-size}"
vpc-subnet1 = "${module.network.PrivateSubnet1}"
vpc-subnet2 = "${module.network.PrivateSubnet2}"
vpc-id = "${module.network.VPC}"
KeyName = "${var.KeyName}"
eks-worker-ami = "${var.eks-worker-ami}"
}
module "rds" {
source = "./modules/rds"
nameurce = "./module= "${var.rdsname}"
subnetser-name = "${var.cl= ["${module.network.PrivateSubnet1}", "${module.network.PrivateSubnet2}"]
vpc_id = "${var.k8= "${module.network.VPC}"
instance_type = "${var.rds_InstanceType}"
}