Skip to content

add cloudwatch alarms for dlqs#31

Merged
ccbrown merged 1 commit intomainfrom
add-cloudwatch-alarms
May 6, 2025
Merged

add cloudwatch alarms for dlqs#31
ccbrown merged 1 commit intomainfrom
add-cloudwatch-alarms

Conversation

@ccbrown
Copy link
Owner

@ccbrown ccbrown commented May 6, 2025

What It Does

Adds CloudWatch alarms for the dead letter queues.

Related Issues

#28

Copilot AI review requested due to automatic review settings May 6, 2025 02:41
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds CloudWatch alarms for DLQs and configures SNS notifications for regional alerts.

  • Import and utilize CloudWatch and SNS modules.
  • Create SNS topics and attach alarm actions to DLQs.
  • Update README.md with details on regional alarm subscriptions.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
aws/lib/regional-stack.ts Adds SNS topic creation and CloudWatch alarms for dead letter queues.
aws/README.md Updates documentation to include alarm subscription details.
Comments suppressed due to low confidence (1)

aws/lib/regional-stack.ts:266

  • [nitpick] The DLQ name for the Stripe event handler is hard-coded as 'CloudSnitchStripeEventHandler-DLQ', while the other DLQ uses a template literal. Consider using a consistent naming convention across DLQs for clarity.
const dlq = new sqs.Queue(this, 'StripeEventHandlerDLQ', {

const dlq = new sqs.Queue(this, 'DeadLetterQueue', {
queueName: `${queueName}-DLQ`,
});
const dlqAlarm = new cw.Alarm(this, 'DeadLetterQueueAlarm', {
Copy link

Copilot AI May 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider adding a 'description' field to the CloudWatch alarm configuration to provide more context for what triggers the alarm, which can aid in troubleshooting and monitoring.

Copilot uses AI. Check for mistakes.
@ccbrown ccbrown merged commit ce57b3f into main May 6, 2025
3 checks passed
@ccbrown ccbrown deleted the add-cloudwatch-alarms branch May 6, 2025 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant