-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathvariables.tf
98 lines (80 loc) · 2.64 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
variable "project" {
description = "GCP project for domain protect infrastructure - define in tfvars file or CI/CD environment variables"
default = ""
}
variable "name" {
description = "application name, forms first part of resource names"
default = "domain-protect"
}
variable "region" {
description = "GCP region to deploy infrastructure"
default = "europe-west2"
}
variable "app_service_region" {
description = "GCP region which App Service is deployed to, this is a Project wide setting"
default = "europe-west2"
}
variable "create_app_engine" {
description = "Create App Engine if not already set up on the Project"
default = false
}
variable "zone" {
description = "GCP availability zone"
default = "europe-west2-c"
}
variable "functions" {
description = "list of names of Functions files in the function/code folder"
default = ["cname", "ns", "cnamestorage", "astorage"] # names cannot include hyphens or underscores
type = list(any)
}
variable "slack_channels" {
description = "List of Slack Channels - enter in tfvars file or CI/CD environment variables"
default = []
type = list(any)
}
variable "slack_channels_dev" {
description = "List of Slack Channels to use for testing purposes with dev environment - enter in tfvars file or CI/CD environment variables"
default = []
type = list(any)
}
variable "slack_webhook_urls" {
description = "List of Slack webhook URLs, in the same order as the slack_channels list - enter in tfvars file or CI/CD environment variables"
default = []
type = list(any)
}
variable "slack_emoji" {
description = "Slack emoji"
default = ":warning:"
}
variable "slack_username" {
description = "Slack username appearing in the from field in the Slack message"
default = "Domain Protect"
}
variable "time_zone" {
description = "Time zone used by Cloud Scheduler"
default = "Europe/London"
}
variable "ingress_settings" {
description = "Controls what traffic can reach the function"
default = "ALLOW_INTERNAL_ONLY"
}
variable "schedule" {
description = "Schedule for triggering functions in CRON syntax"
default = "0 9 * * *" #fire at 9 a.m. every day
}
variable "schedule_dev" {
description = "Schedule for triggering development functions in CRON syntax"
default = "0 8 * * *" #fire at 8 a.m. every day
}
variable "available_memory" {
description = "Available memory for function"
default = 1024
}
variable "runtime" {
description = "Lambda language runtime"
default = "python311"
}
variable "timeout" {
description = "Function timeout in seconds"
default = 540
}