-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.tf
43 lines (36 loc) · 1.25 KB
/
main.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
##########################################
######### Dome9 Provider Settings ########
##########################################
# Configure the Dome9 Provider access_id and secret_key
provider "dome9" {
dome9_access_id = var.dome9_access_id
dome9_secret_key = var.dome9_secret_key
}
##########################################
######### Add Notification Alert #########
##########################################
# Configure Compliance Mail Alert Notification
resource "dome9_continuous_compliance_notification" "dome9_compliance_mail_notification" {
name = "${var.organization} - Mail Alert"
description = "Built and maintained with Terraform"
alerts_console = "true"
change_detection {
email_sending_state = "enabled"
email_data {
recipients = [var.email_recipients]
}
}
}
# Configure Compliance CloudBot Notification
resource "dome9_continuous_compliance_notification" "dome9_compliance_awscloudbot_notification" {
name = "${var.organization} - CloudBot"
description = "Built and maintained with Terraform"
alerts_console = "false"
change_detection {
sns_sending_state = "enabled"
sns_data {
sns_topic_arn = var.sns_topic_arn
sns_output_format = "JsonWithFullEntity"
}
}
}