Skip to content

Commit

Permalink
Do not set tags (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
plumdog committed Jan 22, 2024
1 parent 48be577 commit 9941c1f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as pathlib from 'path';
import { Stack, Tags, Duration, Arn } from 'aws-cdk-lib';
import { Stack, Duration, Arn } from 'aws-cdk-lib';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import * as events from 'aws-cdk-lib/aws-events';
import * as eventsTargets from 'aws-cdk-lib/aws-events-targets';
Expand Down Expand Up @@ -33,7 +33,7 @@ export class MutableTagEcsUpdater extends Construct {
memorySize: 512,
});

const autoUpdateRule = new events.Rule(this, 'AutoUpdateRule', {
new events.Rule(this, 'AutoUpdateRule', {
schedule: events.Schedule.rate(Duration.parse(props.autoUpdateRate ?? 'PT5M')),
targets: [new eventsTargets.LambdaFunction(tagUpdateLambda)],
});
Expand Down Expand Up @@ -68,9 +68,5 @@ export class MutableTagEcsUpdater extends Construct {
],
}),
);

for (const resource of [tagUpdateLambda, autoUpdateRule]) {
Tags.of(resource).add('Component', 'AutoUpdate');
}
}
}

0 comments on commit 9941c1f

Please sign in to comment.