You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 12, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,22 @@ terraform init
23
23
terraform apply
24
24
```
25
25
26
+
## Config via tags
27
+
28
+
You can also configure this module by tagging the SQS queue (requires v1.0.0 or higher). Tags take precedence over variables (tags override variables).
Copy file name to clipboardExpand all lines: variables.tf
+56-16Lines changed: 56 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,22 @@
1
+
# We can not only check the var.topic_arn !="" because of the Terraform error: The "count" value depends on resource attributes that cannot be determined until apply, so Terraform cannot predict how many instances will be created.
2
+
variable"create_topic" {
3
+
type=bool
4
+
description="Create SNS topic? If set to false you must set topic_arn as well!"
5
+
default=true
6
+
}
7
+
8
+
variable"topic_arn" {
9
+
type=string
10
+
description="Optional SNS topic ARN if create_topic := false (usually the output of the modules marbot-monitoring-basic or marbot-standalone-topic)."
11
+
default=""
12
+
}
13
+
14
+
variable"stage" {
15
+
type=string
16
+
description="marbot stage (never change this!)."
17
+
default="v1"
18
+
}
19
+
1
20
variable"endpoint_id" {
2
21
type=string
3
22
description="Your marbot endpoint ID (to get this value: select a channel where marbot belongs to and send a message like this: \"@marbot show me my endpoint id\")."
@@ -26,33 +45,54 @@ variable "queue_name" {
26
45
description="The SQS queue name that you want to monitor."
description="The maximum number of messages in the queue waiting for processing (set to -1 to disable)"
38
-
default=10
64
+
description="The period in seconds over which the specified statistic is applied (<= 86400 and multiple of 60)."
65
+
default=60
39
66
}
40
67
41
-
# We can not only check the var.topic_arn !="" because of the Terraform error: The "count" value depends on resource attributes that cannot be determined until apply, so Terraform cannot predict how many instances will be created.
42
-
variable"create_topic" {
43
-
type=bool
44
-
description="Create SNS topic? If set to false you must set topic_arn as well!"
0 commit comments