-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
110 lines (89 loc) · 2.12 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
variable "project_name" {
type = string
default = "cfl_to_cwl_demo"
}
variable "log_group_name" {
type = string
default = "cloudfront_logs_from_s3"
}
variable "s3_object_arn_list" {
type = set(string)
# EXAMPLE = ["arn:aws:s3:::BUCKET/*.gz"]
}
variable "s3_bucket_name" {
type = string
default = ""
}
variable "s3_notification_filter_prefix" {
type = string
default = ""
}
variable "s3_notification_filter_suffix" {
type = string
default = ".gz"
}
variable "retention_in_days" {
type = string
default = "90"
validation {
condition = contains(["1", "3", "5", "7", "14", "30", "60", "90", "120", "150", "180", "365", "400", "545", "731", "1827", "3653"], var.retention_in_days)
error_message = "Variable must be one of: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 3653."
}
}
variable "lambda_log_retention_in_days" {
type = string
default = "7"
validation {
condition = contains(["1", "3", "5", "7", "14", "30", "60", "90", "120", "150", "180", "365", "400", "545", "731", "1827", "3653"], var.lambda_log_retention_in_days)
error_message = "Variable must be one of: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 3653."
}
}
variable "exclude_sc_status" {
type = string
default = ""
}
variable "output_json" {
type = string
default = "false"
}
variable "lambda_log_format" {
type = string
default = "Text"
}
variable "lambda_log_level" {
type = string
default = "WARN"
}
variable "lambda_system_log_level" {
type = string
default = "WARN"
}
#### THE DEFAULTS SHOULD BE FINE BELOW HERE ####
variable "lambda_layers_python" {
type = list(string)
default = []
}
variable "lambda_src_file" {
type = string
default = ""
}
variable "lambda_zip_file" {
type = string
default = ""
}
variable "lambda_memory_size" {
type = string
default = "256"
}
variable "lambda_runtime" {
type = string
default = "python3.11"
}
variable "lambda_architectures" {
type = set(string)
default = ["arm64"]
}
variable "lambda_timeout" {
type = string
default = "300"
}