Skip to content

Commit 521ad77

Browse files
CCM-10257: Implement Eventpub in Core
1 parent 89f4a0a commit 521ad77

5 files changed

Lines changed: 3 additions & 18 deletions

File tree

infrastructure/modules/eventpub/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
| Name | Description | Type | Default | Required |
1313
|------|-------------|------|---------|:--------:|
14-
| <a name="input_alarm_prefixes"></a> [alarm\_prefixes](#input\_alarm\_prefixes) | Object containing prefixes for alarm descriptions, e.g. 'RELIABILITY:', 'SECURITY:', 'PERFORMANCE:' | <pre>object({<br/> dlq = string<br/> sns_delivery = string<br/> lambda = string<br/> })</pre> | <pre>{<br/> "dlq": null,<br/> "lambda": null,<br/> "sns_delivery": null<br/>}</pre> | no |
1514
| <a name="input_aws_account_id"></a> [aws\_account\_id](#input\_aws\_account\_id) | The AWS Account ID (numeric) | `string` | n/a | yes |
1615
| <a name="input_component"></a> [component](#input\_component) | The name of the terraformscaffold component calling this module | `string` | n/a | yes |
1716
| <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 |

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 = "${var.alarm_prefixes.dlq} Alarm for messages in the DLQ"
3+
alarm_description = "RELIABILITY: Alarm for messages in the DLQ"
44
comparison_operator = "GreaterThanThreshold"
55
evaluation_periods = 1
66
metric_name = "ApproximateNumberOfMessagesVisible"

infrastructure/modules/eventpub/cloudwatch_metric_alarm_lambda_errors.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" "lambda_errors" {
22
alarm_name = "${local.csi}-lambda-errors-alarm"
3-
alarm_description = "${var.alarm_prefixes.lambda} Alarm for Lambda function errors"
3+
alarm_description = "RELIABILITY: Alarm for Lambda function errors"
44
comparison_operator = "GreaterThanOrEqualToThreshold"
55
evaluation_periods = 1
66
metric_name = "Errors"

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 = "${var.alarm_prefixes.sns_delivery} Alarm when SNS topic ${aws_sns_topic.main.name} has delivery failures"
3+
alarm_description = "RELIABILITY: Alarm for SNS topic delivery failures"
44
comparison_operator = "GreaterThanThreshold"
55
evaluation_periods = 1
66
metric_name = "NumberOfNotificationsFailed"

infrastructure/modules/eventpub/variables.tf

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,3 @@ 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 "alarm_prefixes" {
119-
type = object({
120-
dlq = string
121-
sns_delivery = string
122-
lambda = string
123-
})
124-
description = "Object containing prefixes for alarm descriptions, e.g. 'RELIABILITY:', 'SECURITY:', 'PERFORMANCE:'"
125-
default = {
126-
dlq = null
127-
sns_delivery = null
128-
lambda = null
129-
}
130-
}

0 commit comments

Comments
 (0)