Skip to content

Commit 7e98231

Browse files
committed
Rely on defaults for max instances
1 parent b7c86e7 commit 7e98231

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

cdk/bin/cdk.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export const notificationCodeProps: NotificationProps = {
2020
workerSqsQueueName: 'mobile-notifications-harvester-CODE-Sqs-1R9TBA4F2C6TG',
2121
sloMonitoringQueueName: 'notifications-slo-monitoring-CODE',
2222
minAsgSize: 1,
23-
maxAsgSize: 2,
2423
};
2524

2625
export const notificationProdProps: NotificationProps = {
@@ -32,7 +31,6 @@ export const notificationProdProps: NotificationProps = {
3231
workerSqsQueueName: 'mobile-notifications-harvester-PROD-Sqs-NPP9X15G7WAO',
3332
sloMonitoringQueueName: 'notifications-slo-monitoring-PROD',
3433
minAsgSize: 3,
35-
maxAsgSize: 6,
3634
};
3735

3836
new Notification(app, 'Notification-CODE', notificationCodeProps);

cdk/lib/notification.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export interface NotificationProps extends GuStackProps {
3030
workerSqsQueueName: string;
3131
sloMonitoringQueueName: string;
3232
minAsgSize: number;
33-
maxAsgSize: number;
3433
}
3534

3635
export class Notification extends GuStack {
@@ -44,7 +43,6 @@ export class Notification extends GuStack {
4443
workerSqsQueueName,
4544
sloMonitoringQueueName,
4645
minAsgSize,
47-
maxAsgSize,
4846
} = props;
4947

5048
const yamlTemplateFilePath = join(
@@ -140,8 +138,7 @@ export class Notification extends GuStack {
140138
],
141139
},
142140
scaling: {
143-
minimumInstances: minAsgSize,
144-
maximumInstances: maxAsgSize,
141+
minimumInstances: minAsgSize
145142
},
146143
userData: {
147144
distributable: {

0 commit comments

Comments
 (0)