Skip to content

Commit

Permalink
update complete
Browse files Browse the repository at this point in the history
  • Loading branch information
gentksb committed Aug 28, 2023
1 parent 45feab1 commit 2fafe84
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/splitwise-automation-stack.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Stack, StackProps, Duration, aws_sns, aws_chatbot, RemovalPolicy } from "aws-cdk-lib";
import { Rule, Schedule } from "aws-cdk-lib/aws-events";
import { LambdaFunction } from "aws-cdk-lib/aws-events-targets";
import { Runtime } from "aws-cdk-lib/aws-lambda";
import { Runtime, RuntimeManagementMode } from "aws-cdk-lib/aws-lambda";
import { NodejsFunction } from "aws-cdk-lib/aws-lambda-nodejs";
import { RetentionDays } from "aws-cdk-lib/aws-logs";
import { Lambda } from "aws-cdk-lib/aws-ses-actions";
import { Construct } from "constructs";

export class SplitWiseAutomationStack extends Stack {
Expand All @@ -26,10 +27,10 @@ export class SplitWiseAutomationStack extends Stack {
USER2_RATE: "0.4",
},
runtime: Runtime.NODEJS_18_X,
runtimeManagementMode: RuntimeManagementMode.AUTO,
logRetention: RetentionDays.ONE_WEEK
},
)
splitwise_expense_automation.logGroup.applyRemovalPolicy(RemovalPolicy.DESTROY)

const invocationSchedule = new Rule(this, "splitwiseWatchRule", {
schedule: Schedule.rate(Duration.hours(4)),
Expand Down

0 comments on commit 2fafe84

Please sign in to comment.