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
Copy file name to clipboardExpand all lines: infrastructure/terraform/components/api/README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,8 +21,12 @@ No requirements.
21
21
| <aname="input_enable_api_data_trace"></a> [enable\_api\_data\_trace](#input\_enable\_api\_data\_trace)| Enable API Gateway data trace logging |`bool`|`false`| no |
22
22
| <aname="input_enable_backups"></a> [enable\_backups](#input\_enable\_backups)| Enable backups |`bool`|`false`| no |
23
23
| <aname="input_enable_event_cache"></a> [enable\_event\_cache](#input\_enable\_event\_cache)| Enable caching of events to an S3 bucket |`bool`|`true`| no |
24
+
| <aname="input_enable_event_publishing_anomaly_detection"></a> [enable\_event\_publishing\_anomaly\_detection](#input\_enable\_event\_publishing\_anomaly\_detection)| Enable CloudWatch anomaly detection alarm for SNS message publishing. Detects abnormal drops or spikes in event publishing volume. |`bool`|`true`| no |
| <aname="input_environment"></a> [environment](#input\_environment)| The name of the tfscaffold environment |`string`| n/a | yes |
27
+
| <aname="input_event_publishing_anomaly_band_width"></a> [event\_publishing\_anomaly\_band\_width](#input\_event\_publishing\_anomaly\_band\_width)| The width of the anomaly detection band. Higher values (e.g. 4-6) reduce sensitivity and noise, lower values (e.g. 2-3) increase sensitivity. Recommended: 2-4. |`number`|`5`| no |
28
+
| <aname="input_event_publishing_anomaly_evaluation_periods"></a> [event\_publishing\_anomaly\_evaluation\_periods](#input\_event\_publishing\_anomaly\_evaluation\_periods)| Number of evaluation periods for the publishing anomaly alarm. Each period is defined by event\_publishing\_anomaly\_period. |`number`|`3`| no |
29
+
| <aname="input_event_publishing_anomaly_period"></a> [event\_publishing\_anomaly\_period](#input\_event\_publishing\_anomaly\_period)| The period in seconds over which the specified statistic is applied for anomaly detection. Minimum 300 seconds (5 minutes). Recommended: 300-600. |`number`|`300`| no |
26
30
| <aname="input_eventpub_control_plane_bus_arn"></a> [eventpub\_control\_plane\_bus\_arn](#input\_eventpub\_control\_plane\_bus\_arn)| ARN of the EventBridge control plane bus for eventpub |`string`|`""`| no |
27
31
| <aname="input_eventpub_data_plane_bus_arn"></a> [eventpub\_data\_plane\_bus\_arn](#input\_eventpub\_data\_plane\_bus\_arn)| ARN of the EventBridge data plane bus for eventpub |`string`|`""`| no |
28
32
| <aname="input_force_destroy"></a> [force\_destroy](#input\_force\_destroy)| Flag to force deletion of S3 buckets |`bool`|`false`| no |
description="Number of evaluation periods for the publishing anomaly alarm. Each period is defined by event_publishing_anomaly_period."
212
+
default=3
213
+
}
214
+
215
+
variable"event_publishing_anomaly_period" {
216
+
type=number
217
+
description="The period in seconds over which the specified statistic is applied for anomaly detection. Minimum 300 seconds (5 minutes). Recommended: 300-600."
218
+
default=300
219
+
}
220
+
221
+
variable"event_publishing_anomaly_band_width" {
222
+
type=number
223
+
description="The width of the anomaly detection band. Higher values (e.g. 4-6) reduce sensitivity and noise, lower values (e.g. 2-3) increase sensitivity. Recommended: 2-4."
Copy file name to clipboardExpand all lines: infrastructure/terraform/modules/eventsub/README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,14 @@
14
14
| <aname="input_aws_account_id"></a> [aws\_account\_id](#input\_aws\_account\_id)| The AWS Account ID (numeric) |`string`| n/a | yes |
15
15
| <aname="input_component"></a> [component](#input\_component)| The name of the terraformscaffold component calling this module |`string`| n/a | yes |
16
16
| <aname="input_default_tags"></a> [default\_tags](#input\_default\_tags)| Default tag map for application to all taggable resources in the module |`map(string)`|`{}`| no |
17
+
| <aname="input_enable_event_anomaly_detection"></a> [enable\_event\_anomaly\_detection](#input\_enable\_event\_anomaly\_detection)| Enable CloudWatch anomaly detection alarm for SNS topic message publishing |`bool`|`true`| no |
17
18
| <aname="input_enable_event_cache"></a> [enable\_event\_cache](#input\_enable\_event\_cache)| Enable caching of events to an S3 bucket |`bool`|`true`| no |
18
19
| <aname="input_enable_firehose_raw_message_delivery"></a> [enable\_firehose\_raw\_message\_delivery](#input\_enable\_firehose\_raw\_message\_delivery)| Enables raw message delivery on firehose subscription |`bool`|`false`| no |
| <aname="input_environment"></a> [environment](#input\_environment)| The name of the terraformscaffold environment the module is called for |`string`| n/a | yes |
22
+
| <aname="input_event_anomaly_band_width"></a> [event\_anomaly\_band\_width](#input\_event\_anomaly\_band\_width)| The width of the anomaly detection band. Higher values (e.g. 4-6) reduce sensitivity and noise, lower values (e.g. 2-3) increase sensitivity. Recommended: 2-4. |`number`|`3`| no |
23
+
| <aname="input_event_anomaly_evaluation_periods"></a> [event\_anomaly\_evaluation\_periods](#input\_event\_anomaly\_evaluation\_periods)| Number of evaluation periods for the anomaly alarm. Each period is defined by event\_anomaly\_period. |`number`|`2`| no |
24
+
| <aname="input_event_anomaly_period"></a> [event\_anomaly\_period](#input\_event\_anomaly\_period)| The period in seconds over which the specified statistic is applied for anomaly detection. Minimum 300 seconds (5 minutes). Recommended: 300-600. |`number`|`300`| no |
21
25
| <aname="input_event_cache_buffer_interval"></a> [event\_cache\_buffer\_interval](#input\_event\_cache\_buffer\_interval)| The buffer interval for data firehose |`number`|`500`| no |
22
26
| <aname="input_event_cache_expiry_days"></a> [event\_cache\_expiry\_days](#input\_event\_cache\_expiry\_days)| s3 archiving expiry in days |`number`|`30`| no |
23
27
| <aname="input_force_destroy"></a> [force\_destroy](#input\_force\_destroy)| When enabled will force destroy event-cache S3 bucket |`bool`|`false`| no |
@@ -42,6 +46,7 @@
42
46
|------|-------------|
43
47
| <aname="output_s3_bucket_event_cache"></a> [s3\_bucket\_event\_cache](#output\_s3\_bucket\_event\_cache)| S3 Bucket ARN and Name for event cache |
44
48
| <aname="output_sns_topic"></a> [sns\_topic](#output\_sns\_topic)| SNS Topic ARN and Name |
description="Enable CloudWatch anomaly detection alarm for SNS topic message publishing"
89
+
default=true
90
+
}
91
+
92
+
variable"event_anomaly_evaluation_periods" {
93
+
type=number
94
+
description="Number of evaluation periods for the anomaly alarm. Each period is defined by event_anomaly_period."
95
+
default=2
96
+
}
97
+
98
+
variable"event_anomaly_period" {
99
+
type=number
100
+
description="The period in seconds over which the specified statistic is applied for anomaly detection. Minimum 300 seconds (5 minutes). Recommended: 300-600."
101
+
default=300
102
+
}
103
+
104
+
variable"event_anomaly_band_width" {
105
+
type=number
106
+
description="The width of the anomaly detection band. Higher values (e.g. 4-6) reduce sensitivity and noise, lower values (e.g. 2-3) increase sensitivity. Recommended: 2-4."
error_message="Band width must be between 2 and 10"
112
+
}
113
+
}
114
+
82
115
variable"log_level" {
83
116
type=string
84
117
description="The log level to be used in lambda functions within the component. Any log with a lower severity than the configured value will not be logged: https://docs.python.org/3/library/logging.html#levels"
0 commit comments