-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
81 lines (73 loc) · 3.31 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
variable "prefix" {
type = string
description = "Custom prefix to prepend to resources created in this module"
}
variable "delegation_email" {
type = string
description = "Google Service Account delegation email used for domain-wide delegation. See: https://developers.google.com/admin-sdk/reports/v1/guides/delegation"
}
variable "refresh_treshold_min" {
type = number
description = "Number of minutes before the channel expiration to wait until the channel is refreshed"
default = 15
}
variable "secret_name" {
type = string
description = "Name of secret stored in Secrets Manager. This should be the contents of the Google Service Account json credentials file"
}
variable "sfn_cloudwatch_logs_retention_in_days" {
type = number
description = "The number of days to retain log events in the Step Function CloudWatch Log group"
default = 30
}
variable "applications" {
type = list(string)
description = "List of applications names for which logging channels should be created. See: https://developers.google.com/admin-sdk/reports/reference/rest/v1/activities/watch#ApplicationName"
default = []
}
variable "stop_applications" {
type = list(string)
description = "List of applications names for which logging channels should be stopped. Note that entries to this list must have been applied as an entry in the application variable's list before they may be added here"
default = []
}
variable "auto_recover" {
type = bool
description = "Whether Step Function failures should trigger an automatic attempt to recover"
default = true
}
variable "lambda_settings" {
type = object({
endpoint = optional(object({
timeout = optional(number, 30)
memory = optional(number, 128)
log_level = optional(string, "INFO")
log_retention_days = optional(number, 30)
aws_lambda_powertools_layer_arn = optional(string, null)
}), {})
channel_renewer = object({
timeout = optional(number, 30)
memory = optional(number, 128)
log_level = optional(string, "INFO")
log_retention_days = optional(number, 30)
google_api_layer_arn = string # this is required
})
})
description = <<EOT
lambda_settings = {
endpoint = {
timeout = "Timeout for Lambda function"
memory = "Memory, in MB, for Lambda function"
log_level = "String version of the Python logging levels (eg: INFO, DEBUG, CRITICAL) "
log_retention_days = "Number of days for which this Lambda function's CloudWatch Logs should be retained"
aws_lambda_powertools_layer_arn = "ARN of python3.12 compatible Lambda Layer for aws-lambda-powertools
}
channel_renewer = {
timeout = "Timeout for Lambda function"
memory = "Memory, in MB, for Lambda function"
log_level = "String version of the Python logging levels (eg: INFO, DEBUG, CRITICAL) "
log_retention_days = "Number of days for which this Lambda function's CloudWatch Logs should be retained"
google_api_layer_arn = "ARN of python3.12 compatible layer Lambda Layer for google-api-python-client"
}
}
EOT
}