Skip to content

Commit

Permalink
timeout after 60s, bumped to 1.37.0 (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdtaylor committed May 7, 2020
1 parent f540190 commit 634ccd6
Show file tree
Hide file tree
Showing 3 changed files with 1,294 additions and 852 deletions.
3 changes: 2 additions & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Construct, RemovalPolicy } from '@aws-cdk/core';
import { Construct, RemovalPolicy, Duration } from '@aws-cdk/core';
import { Table } from '@aws-cdk/aws-dynamodb';
import { Function, Runtime, Code } from '@aws-cdk/aws-lambda';
import { Bucket } from '@aws-cdk/aws-s3';
Expand Down Expand Up @@ -49,6 +49,7 @@ export class Seeder extends Construct {
const fn = new Function(this, 'handler', {
runtime: Runtime.NODEJS_12_X,
handler: 'index.handler',
timeout: Duration.seconds(60),
code: Code.fromInline(`
console.log('function loaded');
Expand Down
Loading

0 comments on commit 634ccd6

Please sign in to comment.