Skip to content

Commit 5f18e47

Browse files
CCM-10257: Implement Eventpub in Core
1 parent 9e19629 commit 5f18e47

4 files changed

Lines changed: 16 additions & 2 deletions

File tree

infrastructure/modules/eventpub/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
| <a name="input_control_plane_bus_arn"></a> [control\_plane\_bus\_arn](#input\_control\_plane\_bus\_arn) | Data plane event bus arn | `string` | n/a | yes |
1717
| <a name="input_data_plane_bus_arn"></a> [data\_plane\_bus\_arn](#input\_data\_plane\_bus\_arn) | Data plane event bus arn | `string` | n/a | yes |
1818
| <a name="input_default_tags"></a> [default\_tags](#input\_default\_tags) | Default tag map for application to all taggable resources in the module | `map(string)` | `{}` | no |
19+
| <a name="input_dlq_alarm_prefix"></a> [dlq\_alarm\_prefix](#input\_dlq\_alarm\_prefix) | Prefix for dlq alarm | `string` | `"RELIABILITY: "` | no |
1920
| <a name="input_enable_event_cache"></a> [enable\_event\_cache](#input\_enable\_event\_cache) | Enable caching of events to an S3 bucket | `bool` | `false` | no |
2021
| <a name="input_enable_sns_delivery_logging"></a> [enable\_sns\_delivery\_logging](#input\_enable\_sns\_delivery\_logging) | Enable SNS Delivery Failure Notifications | `bool` | `false` | no |
2122
| <a name="input_environment"></a> [environment](#input\_environment) | The name of the terraformscaffold environment the module is called for | `string` | n/a | yes |
@@ -29,6 +30,7 @@
2930
| <a name="input_name"></a> [name](#input\_name) | A unique name to distinguish this module invocation from others within the same CSI scope | `string` | n/a | yes |
3031
| <a name="input_project"></a> [project](#input\_project) | The name of the terraformscaffold project calling the module | `string` | n/a | yes |
3132
| <a name="input_region"></a> [region](#input\_region) | The AWS Region | `string` | n/a | yes |
33+
| <a name="input_sns_delivery_alarm_prefix"></a> [sns\_delivery\_alarm\_prefix](#input\_sns\_delivery\_alarm\_prefix) | Prefix for SNS Delivery alarm | `string` | `"RELIABILITY: "` | no |
3234
| <a name="input_sns_success_logging_sample_percent"></a> [sns\_success\_logging\_sample\_percent](#input\_sns\_success\_logging\_sample\_percent) | Enable SNS Delivery Successful Sample Percentage | `number` | `0` | no |
3335
## Modules
3436

infrastructure/modules/eventpub/cloudwatch_metric_alarm_dlq_alarm.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
resource "aws_cloudwatch_metric_alarm" "dlq_alarm" {
22
alarm_name = "${local.csi}-dlq-messages-alarm"
3-
alarm_description = "RELIABILITY: Alarm for messages in the DLQ"
3+
alarm_description = "${var.dlq_alarm_prefix} Alarm for messages in the DLQ"
44
comparison_operator = "GreaterThanThreshold"
55
evaluation_periods = 1
66
metric_name = "ApproximateNumberOfMessagesVisible"

infrastructure/modules/eventpub/cloudwatch_metric_alarm_sns_delivery_failures.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
resource "aws_cloudwatch_metric_alarm" "sns_delivery_failures" {
22
alarm_name = "${local.csi}-sns-delivery-failures"
3-
alarm_description = "RELIABILITY: Alarm when SNS topic ${aws_sns_topic.main.name} has delivery failures"
3+
alarm_description = "${sns_delivery_alarm_prefix} Alarm when SNS topic ${aws_sns_topic.main.name} has delivery failures"
44
comparison_operator = "GreaterThanThreshold"
55
evaluation_periods = 1
66
metric_name = "NumberOfNotificationsFailed"

infrastructure/modules/eventpub/variables.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,15 @@ variable "iam_permissions_boundary_arn" {
114114
description = "The ARN of the permissions boundary to use for the IAM role"
115115
default = null
116116
}
117+
118+
variable "dlq_alarm_prefix" {
119+
type = string
120+
description = "Prefix for dlq alarm"
121+
default = "RELIABILITY: "
122+
}
123+
124+
variable "sns_delivery_alarm_prefix" {
125+
type = string
126+
description = "Prefix for SNS Delivery alarm"
127+
default = "RELIABILITY: "
128+
}

0 commit comments

Comments
 (0)