forked from arkhoss/terraform-aws-eks-roles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
80 lines (68 loc) · 1.98 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
variable "resources_prefix" {
type = string
default = ""
description = "This variable will be a prefix for each IAM Role and Policy"
}
variable "cluster_name" {
type = string
description = "EKS cluster name in AWS"
}
variable "master_user" {
type = string
description = "Master cluster user, in case aws-auth roles don't work"
}
variable "policy_names" {
type = list
default = ["EKS-AdminPolicy", "EKS-OpsPolicy", "EKS-ViewOnlyPolicy"]
description = "IAM policy names"
}
variable "roles_names" {
type = list
default = ["EKS-AdminsRole", "EKS-OpsRole", "EKS-ViewOnlyRole"]
description = "IAM role names"
}
variable "cluster_role_qty" {
type = number
default = 3
description = "amount of ClusterRoles to be provisioned, it helps with local iterations"
}
variable "cluster_roles" {
type = list
default = [
"cluster-role-cluster-admin",
"cluster-role-cluster-operations",
"cluster-role-cluster-viewonly"
]
description = "ClusterRoles to be provisioned in EKS"
}
variable "cluster_role_binding_qty" {
type = number
default = 3
description = "amount of ClusterRolesBinding to be provisioned, it helps with local iterations"
}
variable "cluster_roles_binding" {
type = list
default = [
"cluster-role-binding-cluster-admin",
"cluster-role-binding-cluster-operations",
"cluster-role-binding-cluster-viewonly"
]
description = "ClusterRolesBinding to be provisioned in EKS"
}
variable "local_kube_context" {
type = string
description = "Local kubectl context to be used to provision"
}
variable "overwrite_aws_auth" {
type = bool
default = false
description = "WARNING!!! If true it will override the aws-auth ConfigMap of your cluster"
}
variable "cluster_nodes_role" {
type = string
description = "IAM Role ARN used by EKS Cluster Nodes, a.k.a Cluster IAM Role ARN"
}
variable "tags" {
type = map(string)
default = { "Name" = "" }
}