This repository was archived by the owner on Sep 12, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 98
98
99
99
resource "aws_cloudwatch_event_rule" "monitoring_jump_start_connection" {
100
100
depends_on = [aws_sns_topic_subscription.marbot]
101
- count = var.enabled ? 1 : 0
101
+ count = ( var.module_version_monitoring_enabled && var. enabled) ? 1 : 0
102
102
103
103
name = "marbot-sqs-queue-connection-${random_id.id8.hex}"
104
104
description = "Monitoring Jump Start connection (created by marbot)"
@@ -107,7 +107,7 @@ resource "aws_cloudwatch_event_rule" "monitoring_jump_start_connection" {
107
107
}
108
108
109
109
resource "aws_cloudwatch_event_target" "monitoring_jump_start_connection" {
110
- count = var.enabled ? 1 : 0
110
+ count = ( var.module_version_monitoring_enabled && var. enabled) ? 1 : 0
111
111
112
112
rule = join("", aws_cloudwatch_event_rule.monitoring_jump_start_connection.*.name)
113
113
target_id = "marbot"
@@ -116,7 +116,7 @@ resource "aws_cloudwatch_event_target" "monitoring_jump_start_connection" {
116
116
{
117
117
"Type": "monitoring-jump-start-tf-connection",
118
118
"Module": "sqs-queue",
119
- "Version": "0.6 .0",
119
+ "Version": "0.7 .0",
120
120
"Partition": "${data.aws_partition.current.partition}",
121
121
"AccountId": "${data.aws_caller_identity.current.account_id}",
122
122
"Region": "${data.aws_region.current.name}"
Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ variable "enabled" {
9
9
default = true
10
10
}
11
11
12
+ variable "module_version_monitoring_enabled" {
13
+ type = bool
14
+ description = "Report the module version back to marbot to notify if updates are available."
15
+ default = true
16
+ }
17
+
12
18
variable "tags" {
13
19
description = "A map of tags to add to all resources"
14
20
type = map(string)
You can’t perform that action at this time.
0 commit comments