Skip to content

Commit

Permalink
Fix incorrect rule name
Browse files Browse the repository at this point in the history
  • Loading branch information
kr565370 committed Apr 25, 2024
1 parent ebc8445 commit b3df1a5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public TransactionLogSnapshotCreationStack(
coreStacks.grantReadTablesStatus(snapshotCreationTrigger);
coreStacks.grantReadTablesMetadata(snapshotCreationLambda);
Rule rule = Rule.Builder.create(this, "TransactionLogSnapshotCreationSchedule")
.ruleName(SleeperScheduleRule.TABLE_METRICS.buildRuleName(instanceProperties))
.ruleName(SleeperScheduleRule.TRANSACTION_LOG_SNAPSHOT_CREATION.buildRuleName(instanceProperties))
.schedule(Schedule.rate(Duration.minutes(1)))
.targets(List.of(new LambdaFunction(snapshotCreationTrigger)))
.enabled(!shouldDeployPaused(this))
Expand All @@ -116,10 +116,10 @@ public TransactionLogSnapshotCreationStack(
instanceProperties.set(TRANSACTION_LOG_SNAPSHOT_CREATION_QUEUE_ARN, queue.getQueueArn());
instanceProperties.set(TRANSACTION_LOG_SNAPSHOT_CREATION_DLQ_URL, deadLetterQueue.getQueueUrl());
instanceProperties.set(TRANSACTION_LOG_SNAPSHOT_CREATION_DLQ_ARN, deadLetterQueue.getQueueArn());
createAlarmForDlq(this, "MetricsJobAlarm",
"Alarms if there are any messages on the dead letter queue for the table metrics queue",
createAlarmForDlq(this, "TransactionLogSnapshotCreationAlarm",
"Alarms if there are any messages on the dead letter queue for the transaction log snapshot creation queue",
deadLetterQueue, topic);
errorMetrics.add(Utils.createErrorMetric("Table Metrics Errors", deadLetterQueue, instanceProperties));
errorMetrics.add(Utils.createErrorMetric("Transaction Log Snapshot Errors", deadLetterQueue, instanceProperties));
queue.grantSendMessages(snapshotCreationTrigger);
coreStacks.grantInvokeScheduled(snapshotCreationTrigger, queue);
snapshotCreationLambda.addEventSource(new SqsEventSource(queue,
Expand Down

0 comments on commit b3df1a5

Please sign in to comment.