-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
112 lines (94 loc) · 4.44 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
variable "confluent_api_key" {
description = "Confluent API Key (also referred as Cloud API ID)."
type = string
}
variable "confluent_api_secret" {
description = "Confluent API Secret."
type = string
sensitive = true
}
variable "aws_region" {
description = "The AWS Region."
type = string
}
variable "aws_account_id" {
description = "The AWS Account ID."
type = string
}
variable "aws_access_key_id" {
description = "The AWS Access Key ID."
type = string
default = ""
}
variable "aws_secret_access_key" {
description = "The AWS Secret Access Key."
type = string
default = ""
}
variable "aws_session_token" {
description = "The AWS Session Token."
type = string
default = ""
}
variable "day_count" {
description = "How many day(s) should the API Key be rotated for."
type = number
default = 30
validation {
condition = var.day_count >= 1
error_message = "Rolling day count, `day_count`, must be greater than or equal to 1."
}
}
variable "number_of_api_keys_to_retain" {
description = "Specifies the number of API keys to create and retain. Must be greater than or equal to 2 in order to maintain proper key rotation for your application(s)."
type = number
default = 2
validation {
condition = var.number_of_api_keys_to_retain >= 2
error_message = "Number of API keys to retain, `number_of_api_keys_to_retain`, must be greater than or equal to 2."
}
}
variable "auto_offset_reset" {
description = "Specifies the behavior of the consumer when there is no committed position (which occurs when the group is first initialized) or when an offset is out of range. You can choose either to reset the position to the 'earliest' offset or the 'latest' offset (the default)."
type = string
default = "latest"
validation {
condition = contains(["earliest", "latest"], var.auto_offset_reset)
error_message = "The auto_offset_reset must be either 'earliest' or 'latest'."
}
}
variable "aws_lambda_memory_size" {
description = "AWS Lambda allocates CPU power in proportion to the amount of memory configured. Memory is the amount of memory available to your Lambda function at runtime. You can increase or decrease the memory and CPU power allocated to your function using the Memory setting. You can configure memory between 128 MB and 10,240 MB in 1-MB increments. At 1,769 MB, a function has the equivalent of one vCPU (one vCPU-second of credits per second)."
type = number
default = 128
validation {
condition = var.aws_lambda_memory_size >= 128 && var.aws_lambda_memory_size <= 10240
error_message = "AWS Lambda memory size, `aws_lambda_memory_size`, must be 1 up to a maximum value of 10,240."
}
}
variable "aws_lambda_timeout" {
description = "AWS Lambda runs your code for a set amount of time before timing out. Timeout is the maximum amount of time in seconds that a Lambda function can run. The default value for this setting is 900 seconds, but you can adjust this in increments of 1 second up to a maximum value of 900 seconds (15 minutes)."
type = number
default = 900
validation {
condition = var.aws_lambda_timeout >= 1 && var.aws_lambda_timeout <= 900
error_message = "AWS Lambda timeout, `aws_lambda_timeout`, must be 1 up to a maximum value of 900."
}
}
variable "aws_log_retention_in_days" {
description = "Specifies the number of days you want to retain log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, 2192, 2557, 2922, 3288, 3653, and 0. If you select 0, the events in the log group are always retained and never expire."
type = number
default = 7
validation {
condition = contains([1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, 2192, 2557, 2922, 3288, 3653, 0], var.aws_log_retention_in_days)
error_message = "AWS Log Retention in Days, `aws_log_retention_in_days`, must be 1 up to a maximum value of 900."
}
}
variable "snowflake_warehouse" {
description = "The Snowflake warehouse."
type = string
}
variable "service_account_user" {
description = "The Snowflake service account user who is to be assigned the RSA key pairs for its authentication."
type = string
}