File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,9 @@ provider "aws" {
4
4
5
5
module "sns_cloudwatch" {
6
6
source = " ../"
7
- name = " capture-aws-sign-in"
7
+ cloudwatch_event_rule_name = " capture-aws-sign-in"
8
8
description = " Capture each AWS Console Sign In"
9
- target_id = " SendToSNS"
9
+ sns_name = " mysns"
10
+ sns_display_name = " demosns"
10
11
}
11
12
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ provider "aws" {
5
5
resource "aws_cloudwatch_event_rule" "default" {
6
6
count = var. enabled == true ? 1 : 0
7
7
8
- name = var. name
8
+ name = var. cloudwatch_event_rule_name
9
9
description = var. description
10
10
event_pattern = << EOF
11
11
{
@@ -30,8 +30,8 @@ resource "aws_cloudwatch_event_target" "default" {
30
30
resource "aws_sns_topic" "this" {
31
31
count = var. enabled ? 1 : 0
32
32
33
- name = var. snsname
34
- display_name = var. display_name
33
+ name = var. sns_name
34
+ display_name = var. sns_display_name
35
35
kms_master_key_id = var. kms_master_key_id
36
36
delivery_policy = var. delivery_policy
37
37
fifo_topic = var. fifo_topic
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ variable "sns_topic_policy_enabled" {
13
13
default = true
14
14
}
15
15
16
- variable "display_name " {
16
+ variable "sns_display_name " {
17
17
type = string
18
18
default = " "
19
19
}
20
20
21
- variable "name " {
21
+ variable "cloudwatch_event_rule_name " {
22
22
type = string
23
23
default = " "
24
24
description = " Name (e.g. `app` or `cluster`)."
@@ -44,7 +44,7 @@ variable "is_enabled" {
44
44
45
45
variable "target_id" {
46
46
type = string
47
- default = " "
47
+ default = " SendToSNS "
48
48
description = " The Amazon Resource Name (ARN) associated with the role that is used for target invocation."
49
49
}
50
50
@@ -73,7 +73,7 @@ variable "input_paths" {
73
73
74
74
}
75
75
76
- variable "snsname " {
76
+ variable "sns_name " {
77
77
type = string
78
78
default = " "
79
79
description = " Name (e.g. `app` or `cluster`)."
You can’t perform that action at this time.
0 commit comments