Skip to content

Commit 4c3219e

Browse files
committed
updated notification endpoints
1 parent 22461e6 commit 4c3219e

File tree

2 files changed

+8
-20
lines changed

2 files changed

+8
-20
lines changed

example/data.tf

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1 @@
1-
data "aws_ssm_parameter" "guard_duty" {
2-
name = "/${var.namespace}/${var.environment}/guard-duty/opsgenie/api-key"
3-
}
4-
5-
data "aws_ssm_parameter" "security_hub" {
6-
name = "/${var.namespace}/${var.environment}/security-hub/opsgenie/api-key"
7-
}
8-
9-
data "aws_ssm_parameter" "aws_config" {
10-
name = "/${var.namespace}/${var.environment}/aws-config/opsgenie/api-key"
11-
}
12-
131
data "aws_caller_identity" "current" {}

example/locals.tf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
locals {
22
aws_config_sns_subscribers = {
33
opsgenie = {
4-
protocol = "https"
5-
endpoint = data.aws_ssm_parameter.aws_config.value
4+
protocol = "email"
5+
endpoint = "[email protected]"
66
endpoint_auto_confirms = true
77
raw_message_delivery = false
88
}
99
}
1010
guard_duty_sns_subscribers = {
1111
opsgenie = {
12-
protocol = "https"
13-
endpoint = data.aws_ssm_parameter.guard_duty.value
12+
protocol = "email"
13+
endpoint = "[email protected]"
1414
endpoint_auto_confirms = true
1515
raw_message_delivery = false
1616
}
1717
}
1818
security_hub_sns_subscribers = {
1919
opsgenie = {
20-
protocol = "https"
21-
endpoint = data.aws_ssm_parameter.security_hub.value
20+
protocol = "email"
21+
endpoint = "[email protected]"
2222
endpoint_auto_confirms = true
2323
raw_message_delivery = false
2424
}
2525
}
2626

2727
inspector_sns_subscribers = {
2828
opsgenie = {
29-
protocol = "https"
30-
endpoint = data.aws_ssm_parameter.security_hub.value
29+
protocol = "email"
30+
endpoint = "[email protected]"
3131
endpoint_auto_confirms = true
3232
raw_message_delivery = false
3333
}

0 commit comments

Comments
 (0)