Skip to content

Commit 634ccd6

Browse files
authored
timeout after 60s, bumped to 1.37.0 (#22)
1 parent f540190 commit 634ccd6

File tree

3 files changed

+1294
-852
lines changed

3 files changed

+1294
-852
lines changed

lib/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Construct, RemovalPolicy } from '@aws-cdk/core';
1+
import { Construct, RemovalPolicy, Duration } from '@aws-cdk/core';
22
import { Table } from '@aws-cdk/aws-dynamodb';
33
import { Function, Runtime, Code } from '@aws-cdk/aws-lambda';
44
import { Bucket } from '@aws-cdk/aws-s3';
@@ -49,6 +49,7 @@ export class Seeder extends Construct {
4949
const fn = new Function(this, 'handler', {
5050
runtime: Runtime.NODEJS_12_X,
5151
handler: 'index.handler',
52+
timeout: Duration.seconds(60),
5253
code: Code.fromInline(`
5354
console.log('function loaded');
5455

0 commit comments

Comments
 (0)