generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
154 lines (127 loc) · 3.46 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
#Module : LABEL
#Description : Terraform label module variables.
variable "name" {
type = string
default = ""
description = "Name (e.g. `app` or `cluster`)."
}
variable "environment" {
type = string
default = ""
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "repository" {
type = string
default = "https://github.com/clouddrove/terraform-aws-vpc"
description = "Terraform current module repo"
}
variable "label_order" {
type = list(any)
default = ["environment", "name"]
description = "Label order, e.g. `name`,`application`."
}
variable "managedby" {
type = string
default = "hello@clouddrove.com"
description = "ManagedBy, eg 'CloudDrove'"
}
variable "enabled" {
type = bool
default = true
}
## IAM
variable "provider_url" {
type = string
default = ""
description = "URL of the OIDC Provider. Use provider_urls to specify several URLs."
}
variable "provider_urls" {
type = list(string)
default = []
description = "List of URLs of the OIDC Providers"
}
variable "role_name_prefix" {
type = string
default = null
description = "IAM role name prefix"
}
variable "role_description" {
type = string
default = ""
description = "IAM Role description"
}
variable "role_path" {
type = string
default = "/"
description = "Path of IAM role"
}
variable "role_permissions_boundary_arn" {
type = string
default = null
description = "Permissions boundary ARN to use for IAM role"
}
variable "max_session_duration" {
type = number
default = 3600
description = "Maximum CLI/API session duration in seconds between 3600 and 43200"
}
variable "role_policy_arns" {
type = list(string)
default = []
description = "List of ARNs of IAM policies to attach to IAM role"
}
variable "number_of_role_policy_arns" {
type = number
default = null
description = "Number of IAM policies to attach to IAM role"
}
variable "oidc_fully_qualified_subjects" {
type = set(string)
default = ["system:serviceaccount:karpenter:karpenter"]
description = "The fully qualified OIDC subjects to be added to the role policy"
}
variable "oidc_subjects_with_wildcards" {
type = set(string)
default = []
description = "The OIDC subject using wildcards to be added to the role policy"
}
variable "oidc_fully_qualified_audiences" {
type = set(string)
default = []
description = "The audience to be added to the role policy. Set to sts.amazonaws.com for cross-account assumable role. Leave empty otherwise."
}
variable "force_detach_policies" {
description = "Whether policies should be detached from this role when destroying"
type = bool
default = false
}
variable "cluster_name" {
type = string
default = "test"
description = "The name of EKS cluster"
}
variable "namespace" {
type = string
default = null
description = ""
}
variable "create_namespace" {
type = bool
default = false
description = ""
}
variable "eks_cluster_endpoint" {
type = string
default = null
description = "eks cluster endpoint"
}
variable "eks_worker_iam_role_name" {
type = string
default = "test"
description = "eks iam role name"
}
variable "karpenter_version" {
type = string
default = "0.5.1"
description = "Helm version of karpenter"
}