Skip to content

Commit 710934c

Browse files
committed
fix(lunchbot): added retention period for lambda function
1 parent 812668b commit 710934c

File tree

2 files changed

+25
-9
lines changed

2 files changed

+25
-9
lines changed

src/lunch.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,7 @@ export class Lunch extends Construct {
8989
const targets: glue.CfnCrawler.TargetsProperty = {
9090
dynamoDbTargets,
9191
}
92-
// const database: glue.CfnDatabase = new glue.CfnDatabase(this, 'Database', {
93-
// databaseInput: {
94-
// targetDatabase: {
95-
// region: Aws.REGION,
96-
// },
97-
// },
98-
// databaseName: 'lunch',
99-
// catalogId: Aws.ACCOUNT_ID,
100-
// })
92+
10193
new glue.CfnCrawler(this, 'Crawler', {
10294
role: crawlerRole.roleArn,
10395
targets,
@@ -108,6 +100,7 @@ export class Lunch extends Construct {
108100
'fulfillmentLambda',
109101
{
110102
runtime: lambda.Runtime.NODEJS_20_X,
103+
logRetention: logs.RetentionDays.ONE_MONTH,
111104
environment: {
112105
SERVICE_NAME: 'lunchbot',
113106
POWERTOOLS_LOG_LEVEL: 'DEBUG',

test/__snapshots__/main.test.ts.snap

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)