File tree Expand file tree Collapse file tree 2 files changed +8
-20
lines changed Expand file tree Collapse file tree 2 files changed +8
-20
lines changed Original file line number Diff line number Diff line change 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
-
13
1
data "aws_caller_identity" "current" {}
Original file line number Diff line number Diff line change 1
1
locals {
2
2
aws_config_sns_subscribers = {
3
3
opsgenie = {
4
- protocol = " https "
5
- endpoint = data.aws_ssm_parameter.aws_config.value
4
+ protocol = " email "
5
+
6
6
endpoint_auto_confirms = true
7
7
raw_message_delivery = false
8
8
}
9
9
}
10
10
guard_duty_sns_subscribers = {
11
11
opsgenie = {
12
- protocol = " https "
13
- endpoint = data.aws_ssm_parameter.guard_duty.value
12
+ protocol = " email "
13
+
14
14
endpoint_auto_confirms = true
15
15
raw_message_delivery = false
16
16
}
17
17
}
18
18
security_hub_sns_subscribers = {
19
19
opsgenie = {
20
- protocol = " https "
21
- endpoint = data.aws_ssm_parameter.security_hub.value
20
+ protocol = " email "
21
+
22
22
endpoint_auto_confirms = true
23
23
raw_message_delivery = false
24
24
}
25
25
}
26
26
27
27
inspector_sns_subscribers = {
28
28
opsgenie = {
29
- protocol = " https "
30
- endpoint = data.aws_ssm_parameter.security_hub.value
29
+ protocol = " email "
30
+
31
31
endpoint_auto_confirms = true
32
32
raw_message_delivery = false
33
33
}
You can’t perform that action at this time.
0 commit comments