diff --git a/cdk/lib/__snapshots__/support-reminders.test.ts.snap b/cdk/lib/__snapshots__/support-reminders.test.ts.snap index bf5e20a..93c45a4 100644 --- a/cdk/lib/__snapshots__/support-reminders.test.ts.snap +++ b/cdk/lib/__snapshots__/support-reminders.test.ts.snap @@ -82,7 +82,7 @@ exports[`The SupportReminders stack matches the snapshot 1`] = ` { "Ref": "AWS::AccountId", }, - ":contributions-dev", + ":alarms-handler-topic-PROD", ], ], }, @@ -121,7 +121,7 @@ exports[`The SupportReminders stack matches the snapshot 1`] = ` { "Ref": "AWS::AccountId", }, - ":conversion-dev", + ":alarms-handler-topic-PROD", ], ], }, @@ -1883,7 +1883,7 @@ exports[`The SupportReminders stack matches the snapshot 1`] = ` { "Ref": "AWS::AccountId", }, - ":conversion-dev", + ":alarms-handler-topic-PROD", ], ], }, @@ -2488,7 +2488,7 @@ exports[`The SupportReminders stack matches the snapshot 1`] = ` { "Ref": "AWS::AccountId", }, - ":conversion-dev", + ":alarms-handler-topic-PROD", ], ], }, @@ -2868,7 +2868,7 @@ exports[`The SupportReminders stack matches the snapshot 2`] = ` { "Ref": "AWS::AccountId", }, - ":contributions-dev", + ":alarms-handler-topic-PROD", ], ], }, @@ -2907,7 +2907,7 @@ exports[`The SupportReminders stack matches the snapshot 2`] = ` { "Ref": "AWS::AccountId", }, - ":conversion-dev", + ":alarms-handler-topic-PROD", ], ], }, @@ -4669,7 +4669,7 @@ exports[`The SupportReminders stack matches the snapshot 2`] = ` { "Ref": "AWS::AccountId", }, - ":conversion-dev", + ":alarms-handler-topic-PROD", ], ], }, @@ -5274,7 +5274,7 @@ exports[`The SupportReminders stack matches the snapshot 2`] = ` { "Ref": "AWS::AccountId", }, - ":conversion-dev", + ":alarms-handler-topic-PROD", ], ], }, diff --git a/cdk/lib/support-reminders.ts b/cdk/lib/support-reminders.ts index 7711327..a70c3a8 100644 --- a/cdk/lib/support-reminders.ts +++ b/cdk/lib/support-reminders.ts @@ -32,6 +32,7 @@ export class SupportReminders extends GuStack { // ---- Miscellaneous constants ---- // const app = "support-reminders"; const vpc = GuVpc.fromIdParameter(this, "vpc"); + const alarmsTopic = 'alarms-handler-topic-PROD'; const runtime = Runtime.NODEJS_18_X; const fileName = "support-reminders.zip"; const environment = { @@ -84,7 +85,7 @@ export class SupportReminders extends GuStack { allowHeaders: ["Content-Type"], }, monitoringConfiguration: { - snsTopicName: "conversion-dev", + snsTopicName: alarmsTopic, http5xxAlarm: { tolerated5xxPercentage: 1, } @@ -124,7 +125,7 @@ export class SupportReminders extends GuStack { }, ], monitoringConfiguration: { - snsTopicName: "conversion-dev", + snsTopicName: alarmsTopic, toleratedErrorPercentage: 1, }, ...sharedLambdaProps, @@ -139,7 +140,7 @@ export class SupportReminders extends GuStack { }, ], monitoringConfiguration: { - snsTopicName: "conversion-dev", + snsTopicName: alarmsTopic, toleratedErrorPercentage: 1, }, ...sharedLambdaProps, @@ -160,7 +161,7 @@ export class SupportReminders extends GuStack { evaluationPeriods: 1, threshold: 8, actionsEnabled: isProd(), - snsTopicName: "contributions-dev", + snsTopicName: alarmsTopic, comparisonOperator: ComparisonOperator.GREATER_THAN_OR_EQUAL_TO_THRESHOLD, metric: new Metric({ metricName: "4XXError",