Skip to content

Commit 56f6928

Browse files
authored
Merge pull request #3 from RenovoSolutions/DEVOPS-2658-make-cdk-library-aurora-native-backup-compliant-with-cdk-nag
Devops 2658 make cdk library aurora native backup compliant with cdk nag
2 parents 0eddfeb + 0643484 commit 56f6928

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/aurora-native-backup-service.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,6 @@ export class AuroraNativeBackupService extends Construct {
240240
subnetSelection = { subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS },
241241
} = props;
242242

243-
// Generate schedule name and truncate to 64 characters (AWS EventBridge Scheduler limit)
244-
const scheduleName = `backup-${dbCluster.clusterIdentifier}`.substring(0, 64);
245-
246243
const containerImage = ecs.ContainerImage.fromEcrRepository(ecrRepository, 'latest');
247244

248245
this.backupSecurityGroup = new ec2.SecurityGroup(this, 'BackupSecurityGroup', {
@@ -614,7 +611,6 @@ export class AuroraNativeBackupService extends Construct {
614611
this.schedule = new scheduler.Schedule(this, 'BackupSchedule', {
615612
schedule: backupSchedule,
616613
timeWindow: props.scheduleTimeWindow ?? scheduler.TimeWindow.flexible(Duration.minutes(60)),
617-
scheduleName: scheduleName,
618614
description: `Daily backup schedule for Aurora cluster ${dbCluster.clusterIdentifier}`,
619615
target: new scheduler_targets.EcsRunFargateTask(cluster, {
620616
taskDefinition: this.taskDefinition,

0 commit comments

Comments
 (0)