-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
117 lines (95 loc) · 3.13 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
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}
variable "prefix_separator" {
description = "The separator to use between the prefix and the generated timestamp for resource names"
type = string
default = "-"
}
################################################################################
# Cloudwatch
################################################################################
variable "name" {
description = "The name of the cloudwatch deployment"
type = string
default = "cloudwatch"
}
variable "create_namespace" {
description = "Determines whether to create a new kubernetes namespace for the cloudwatch agent deployment"
type = bool
default = false
}
variable "namespace" {
description = "The namespace to put the cloudwatch deployment in"
type = string
default = "kube-system"
}
variable "image_name" {
description = "The name of the cloudwatch container image"
type = string
default = "cloudwatch-agent"
}
variable "image_version" {
description = "The name of the cloudwatch container image version"
type = string
default = "1.247349.0b251399"
}
################################################################################
# IAM Role Variables
################################################################################
variable "create_iam_role" {
description = "Determines whether a an IAM role is created or to use an existing IAM role for the cloudwatch agent"
type = bool
default = true
}
variable "iam_role_arn" {
description = "Existing IAM role ARN for the cloudwatch agent. Required if `create_iam_role` is set to `false`"
type = string
default = null
}
variable "iam_role_name" {
description = "Name to use on IAM role created"
type = string
default = null
}
variable "iam_role_use_name_prefix" {
description = "Determines whether the IAM role name (`iam_role_name`) is used as a prefix"
type = string
default = true
}
variable "iam_role_path" {
description = "Cluster IAM role path"
type = string
default = "/eks/"
}
variable "iam_role_description" {
description = "Description of the role"
type = string
default = "Permissions required by the Kubernetes Cloudwatch to do it's job."
}
variable "iam_role_permissions_boundary" {
description = "ARN of the policy that is used to set the permissions boundary for the IAM role"
type = string
default = null
}
/*
variable "iam_role_additional_policies" {
description = "Additional policies to be added to the IAM role"
type = list(string)
default = []
}
*/
variable "iam_role_tags" {
description = "A map of additional tags to add to the IAM role created"
type = map(string)
default = {}
}
################################################################################
# EKS
################################################################################
variable "eks_cluster_name" {
description = "The name of the target Kubernetes Cluster"
type = string
}