Skip to content

Commit fdd1d78

Browse files
committed
Switch to new lambda running
1 parent 990441b commit fdd1d78

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

cdk/lib/report.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,6 @@ export class Report extends GuStack {
238238
functionName: [stack, eventConsumerApp, stage].join('-'),
239239
});
240240

241-
// Disable the schedule rule for testing
242-
const eventConsumerRule = eventConsumer.node.findChild(
243-
'EventConsumer-cron(2/5 * * * ? *)-0',
244-
).node.defaultChild as CfnRule;
245-
eventConsumerRule.state = 'DISABLED';
246-
247241
eventConsumer.addToRolePolicy(
248242
new PolicyStatement({
249243
effect: Effect.ALLOW,

eventconsumer/cfn.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ Resources:
142142
Type: AWS::Events::Rule
143143
Properties:
144144
ScheduleExpression: "cron(2/5 * * * ? *)"
145+
State: DISABLED
145146
Targets:
146147
- Id: AthenaLambdaScheduleEventRuleTarget
147148
Arn: !GetAtt AthenaLambda.Arn

0 commit comments

Comments
 (0)