-
Notifications
You must be signed in to change notification settings - Fork 37
/
variables.tf
55 lines (48 loc) · 1.29 KB
/
variables.tf
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
49
50
51
52
53
54
55
variable "cluster_name" {
description = "EKS Cluster Name"
type = string
default = "sudheer-demo"
}
variable "aws_region" {
description = "Region on which to host EKS Cluster"
type = string
default = "us-east-2"
}
variable "vpc_network" {
description = "VPC network CIDR for EKS cluster"
type = string
default = "192.168.0.0/16"
}
locals {
public_subnets = {
"${var.aws_region}a" = "192.168.0.0/18"
"${var.aws_region}b" = "192.168.64.0/18"
}
private_subnets = {
"${var.aws_region}a" = "192.168.128.0/18"
"${var.aws_region}b" = "192.168.192.0/18"
}
}
locals {
node_policy_arn = {
"node_policy" = "arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy"
"acr_policy" = "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly"
"cni_policy" = "arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy"
}
}
variable "cluster_arn" {
description = "ARN of the policy to access EKS cluster"
type = string
default = "arn:aws:iam::aws:policy/AmazonEKSClusterPolicy"
}
locals {
common_tags = {
Component = "eks-cluster"
Environment = "staging"
}
}
variable "eks_node_ssh_key" {
description = "Key pair to SSH nodes(compute nodes) of EKS cluster"
type = string
default = "visualpath-demo-ohio"
}