-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.tf
94 lines (80 loc) · 3.02 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
# This file contains the variable declarations for the Terraform module.
# expel_customer_organization_guid:
variable "expel_customer_organization_guid" {
description = "Expel customer's organization GUID assigned to you by Expel. You can find it in your browser URL after navigating to Settings > My Organization in Workbench."
type = string
}
# expel_aws_account_arn:
variable "expel_aws_account_arn" {
description = "Expel's AWS Account ARN to allow assuming role to gain EKS access."
type = string
default = "arn:aws:iam::012205512454:user/ExpelCloudService"
}
# expel_assume_role_session_name:
variable "expel_assume_role_session_name" {
description = "The session name Expel will use when authenticating."
type = string
default = "ExpelEKSServiceSession"
}
# prefix:
variable "prefix" {
description = "A prefix to group all Expel integration resources."
type = string
default = "expel-aws-eks"
validation {
condition = length(var.prefix) <= 26
error_message = "Prefix value must be 26 characters or less."
}
}
# tags:
variable "tags" {
description = "A set of tags to group resources."
default = {}
}
# eks_log_group_name:
variable "eks_log_group_name" {
description = "The EKS log group name to integrate with Expel Workbench."
type = string
}
# stream_capacity_mode:
variable "stream_capacity_mode" {
description = "The data stream capacity mode: ON_DEMAND (recommended) or PROVISIONED. See: https://docs.aws.amazon.com/streams/latest/dev/how-do-i-size-a-stream.html"
type = string
default = "ON_DEMAND"
# Validation: Stream capacity mode must be one of ON_DEMAND, PROVISIONED.
validation {
condition = var.stream_capacity_mode == "ON_DEMAND" || var.stream_capacity_mode == "PROVISIONED"
error_message = "Stream capacity mode must be one of ON_DEMAND, PROVISIONED."
}
}
# stream_shard_count:
variable "stream_shard_count" {
description = "The number of shards for the Kinesis stream. Only required if `stream_capacity_mode` is `PROVISIONED`. See: https://docs.aws.amazon.com/streams/latest/dev/how-do-i-size-a-stream.html"
type = number
nullable = true
default = null
}
# stream_retention_hours:
variable "stream_retention_hours" {
description = "The number of hours data will be retained in the stream. See: https://docs.aws.amazon.com/streams/latest/dev/kinesis-extended-retention.html"
type = number
default = 24
}
# enable_stream_encryption:
variable "enable_stream_encryption" {
description = "Optionally encrypt data in the Kinesis stream with a Kinesis-owned KMS key."
type = bool
default = true
}
# expel_k8s_user_name:
variable "expel_k8s_user_name" {
description = "User for k8s Benchmark Report poller"
type = string
default = "expel-user"
}
# expel_k8s_cluster_role_name:
variable "expel_k8s_cluster_role_name" {
description = "ClusterRole for Benchmark Report poller permissions."
type = string
default = "expel-reader-clusterrole"
}