diff --git a/infrastructure/terraform/components/api/README.md b/infrastructure/terraform/components/api/README.md index c034c9549..4c86c59f8 100644 --- a/infrastructure/terraform/components/api/README.md +++ b/infrastructure/terraform/components/api/README.md @@ -24,7 +24,7 @@ No requirements. | [enable\_alarms](#input\_enable\_alarms) | Enable CloudWatch alarms for this deployed environment | `bool` | `true` | no | | [enable\_api\_data\_trace](#input\_enable\_api\_data\_trace) | Enable API Gateway data trace logging | `bool` | `false` | no | | [enable\_backups](#input\_enable\_backups) | Enable backups | `bool` | `false` | no | -| [enable\_event\_anomaly\_detection](#input\_enable\_event\_anomaly\_detection) | Enable CloudWatch anomaly detection alarm for SNS message Detects abnormal drops or spikes in event publishing volume. | `bool` | `true` | no | +| [enable\_event\_anomaly\_detection](#input\_enable\_event\_anomaly\_detection) | Enable CloudWatch anomaly detection alarm for SNS message Detects abnormal drops or spikes in event publishing volume. | `bool` | `false` | no | | [enable\_event\_cache](#input\_enable\_event\_cache) | Enable caching of events to an S3 bucket | `bool` | `true` | no | | [enable\_sns\_delivery\_logging](#input\_enable\_sns\_delivery\_logging) | Enable SNS Delivery Failure Notifications | `bool` | `true` | no | | [enable\_supplier\_mock\_scheduler](#input\_enable\_supplier\_mock\_scheduler) | Enable EventBridge Scheduler trigger for supplier mock lambda | `bool` | `false` | no | diff --git a/infrastructure/terraform/components/api/locals.tf b/infrastructure/terraform/components/api/locals.tf index da1e61630..f1e824605 100644 --- a/infrastructure/terraform/components/api/locals.tf +++ b/infrastructure/terraform/components/api/locals.tf @@ -47,4 +47,5 @@ locals { var.region, var.csoc_destination_account ) + enable_alarms = true } diff --git a/infrastructure/terraform/components/api/locals_alarms.tf b/infrastructure/terraform/components/api/locals_alarms.tf index ac451537e..a178cb993 100644 --- a/infrastructure/terraform/components/api/locals_alarms.tf +++ b/infrastructure/terraform/components/api/locals_alarms.tf @@ -1,5 +1,5 @@ locals { - alarms_enabled = var.enable_alarms + alarms_enabled = true apigw_alarm_dimensions = { ApiName = aws_api_gateway_rest_api.main.name diff --git a/infrastructure/terraform/components/api/variables.tf b/infrastructure/terraform/components/api/variables.tf index fb9cfdd74..3d16b8465 100644 --- a/infrastructure/terraform/components/api/variables.tf +++ b/infrastructure/terraform/components/api/variables.tf @@ -247,7 +247,7 @@ variable "supplier_mock_schedule_expression" { variable "enable_event_anomaly_detection" { type = bool description = "Enable CloudWatch anomaly detection alarm for SNS message Detects abnormal drops or spikes in event publishing volume." - default = true + default = false } variable "event_anomaly_evaluation_periods" { diff --git a/infrastructure/terraform/modules/alarms-sqs/README.md b/infrastructure/terraform/modules/alarms-sqs/README.md index 2c721eadb..2b765310c 100644 --- a/infrastructure/terraform/modules/alarms-sqs/README.md +++ b/infrastructure/terraform/modules/alarms-sqs/README.md @@ -13,7 +13,7 @@ |------|-------------|------|---------|:--------:| | [age\_anomaly\_datapoints\_to\_alarm](#input\_age\_anomaly\_datapoints\_to\_alarm) | n/a | `number` | `3` | no | | [age\_anomaly\_evaluation\_periods](#input\_age\_anomaly\_evaluation\_periods) | n/a | `number` | `5` | no | -| [age\_anomaly\_sensitivity](#input\_age\_anomaly\_sensitivity) | n/a | `number` | `3` | no | +| [age\_anomaly\_sensitivity](#input\_age\_anomaly\_sensitivity) | n/a | `number` | `30` | no | | [age\_period\_seconds](#input\_age\_period\_seconds) | n/a | `number` | `900` | no | | [alarm\_prefix](#input\_alarm\_prefix) | n/a | `string` | n/a | yes | | [queue\_name](#input\_queue\_name) | n/a | `string` | n/a | yes | diff --git a/infrastructure/terraform/modules/alarms-sqs/variables.tf b/infrastructure/terraform/modules/alarms-sqs/variables.tf index c635c3973..6994b922a 100644 --- a/infrastructure/terraform/modules/alarms-sqs/variables.tf +++ b/infrastructure/terraform/modules/alarms-sqs/variables.tf @@ -18,7 +18,7 @@ variable "age_period_seconds" { variable "age_anomaly_sensitivity" { type = number - default = 3 + default = 30 } variable "age_anomaly_evaluation_periods" { diff --git a/infrastructure/terraform/modules/eventsub/README.md b/infrastructure/terraform/modules/eventsub/README.md index 4ddc516e1..d8e85389d 100644 --- a/infrastructure/terraform/modules/eventsub/README.md +++ b/infrastructure/terraform/modules/eventsub/README.md @@ -15,7 +15,7 @@ | [aws\_account\_id](#input\_aws\_account\_id) | The AWS Account ID (numeric) | `string` | n/a | yes | | [component](#input\_component) | The name of the terraformscaffold component calling this module | `string` | n/a | yes | | [default\_tags](#input\_default\_tags) | Default tag map for application to all taggable resources in the module | `map(string)` | `{}` | no | -| [enable\_event\_anomaly\_detection](#input\_enable\_event\_anomaly\_detection) | Enable CloudWatch anomaly detection alarm for SNS topic message publishing | `bool` | `true` | no | +| [enable\_event\_anomaly\_detection](#input\_enable\_event\_anomaly\_detection) | Enable CloudWatch anomaly detection alarm for SNS topic message publishing | `bool` | `false` | no | | [enable\_event\_cache](#input\_enable\_event\_cache) | Enable caching of events to an S3 bucket | `bool` | `true` | no | | [enable\_firehose\_raw\_message\_delivery](#input\_enable\_firehose\_raw\_message\_delivery) | Enables raw message delivery on firehose subscription | `bool` | `false` | no | | [enable\_sns\_delivery\_logging](#input\_enable\_sns\_delivery\_logging) | Enable SNS Delivery Failure Notifications | `bool` | `true` | no | diff --git a/infrastructure/terraform/modules/eventsub/variables.tf b/infrastructure/terraform/modules/eventsub/variables.tf index 964e90bd6..95cb92fe2 100644 --- a/infrastructure/terraform/modules/eventsub/variables.tf +++ b/infrastructure/terraform/modules/eventsub/variables.tf @@ -86,7 +86,7 @@ variable "sns_success_logging_sample_percent" { variable "enable_event_anomaly_detection" { type = bool description = "Enable CloudWatch anomaly detection alarm for SNS topic message publishing" - default = true + default = false } variable "event_anomaly_evaluation_periods" {