-
Notifications
You must be signed in to change notification settings - Fork 16
/
variables.tf
74 lines (64 loc) · 1.25 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
variable "aws_profile" {
type = string
}
variable "aws_region" {
type = string
}
variable "terraform_backend_s3_bucket" {
description = "S3 bucket name for terraform state"
type = string
}
variable "global_prefix" {
type = string
}
variable "users" {
type = map(map(string))
default = {}
}
variable "SES_notifiers" {
type = list(object({
zone_id = string
source_email_address = string
dest_email_address = string
}))
default = []
}
variable "Slack_notifiers" {
type = list(object({
webhook = string
}))
default = []
}
variable "SendGrid_notifiers" {
type = list(object({
api_key = string
source_email_address = string
dest_email_addresses = list(string)
}))
default = []
}
locals {
ggcanary_lambda_parameters = concat(
[
for notifier_config in var.SES_notifiers :
{
kind = "ses"
parameters = notifier_config
}
],
[
for notifier_config in var.Slack_notifiers :
{
kind = "slack"
parameters = notifier_config
}
],
[
for notifier_config in var.SendGrid_notifiers :
{
kind = "sendgrid"
parameters = notifier_config
}
],
)
}