File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 2
2
locals {
3
3
# # Indicates if slack notifications are enabled
4
4
enable_slack = var. notifications . slack != null ? true : false
5
+ # # Indicates if email notifications are enabled
6
+ enable_email = var. notifications . email != null ? true : false
7
+
8
+ # # The configuration for email notifications if enabled
9
+ email = local. enable_email ? {
10
+ addresses = var.notifications.email.addresses
11
+ } : null
5
12
6
13
# # The configuration for slack notifications if enabled
7
14
slack = local. enable_slack ? {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ module "notifications" {
6
6
7
7
allowed_aws_services = [" budgets.amazonaws.com" , " lambda.amazonaws.com" ]
8
8
create_sns_topic = var. create_sns_topic
9
- email = try (var . notifications . email . addresses , [])
9
+ email = local . email
10
10
slack = local. slack
11
11
sns_topic_name = var. sns_topic_name
12
12
tags = var. tags
You can’t perform that action at this time.
0 commit comments