Skip to content

Commit

Permalink
refactor: increase RAM allocation and timeout in example.
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h committed Oct 23, 2021
1 parent 9b7459d commit 53d1870
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions storybook/example/cdk/cdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ func NewCdkStack(scope constructs.Construct, id string, props *CdkStackProps) aw
}

f := awslambdago.NewGoFunction(stack, jsii.String("storybookHandler"), &awslambdago.GoFunctionProps{
Runtime: awslambda.Runtime_GO_1_X(),
Entry: jsii.String("../lambda"),
Bundling: bundlingOptions,
Timeout: awscdk.Duration_Millis(jsii.Number(3000)),
Runtime: awslambda.Runtime_GO_1_X(),
Entry: jsii.String("../lambda"),
Bundling: bundlingOptions,
MemorySize: jsii.Number(1024),
Timeout: awscdk.Duration_Millis(jsii.Number(15000)),
})
fi := awsapigatewayv2integrations.NewLambdaProxyIntegration(&awsapigatewayv2integrations.LambdaProxyIntegrationProps{
Handler: f,
Expand Down

0 comments on commit 53d1870

Please sign in to comment.