Skip to content

Commit

Permalink
fix: update timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
apalchys committed Nov 27, 2023
1 parent 300d37d commit 44ffcf4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cdk/AngularCourseStack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as integration from "@aws-cdk/aws-apigatewayv2-integrations-alpha";
import * as cloudfront from "aws-cdk-lib/aws-cloudfront";
import { Construct } from "constructs";
import { NodejsFunction } from "aws-cdk-lib/aws-lambda-nodejs";
import { Runtime } from "aws-cdk-lib/aws-lambda";
import { Runtime, Architecture } from "aws-cdk-lib/aws-lambda";
import { HttpMethod } from "@aws-cdk/aws-apigatewayv2-alpha";

type Props = cdk.StackProps & {
Expand Down Expand Up @@ -146,6 +146,8 @@ export class AngularCourseStack extends cdk.Stack {
externalModules: ["@aws-sdk/*"],
},
role: lambdaRole,
timeout: cdk.Duration.seconds(30),
architecture: Architecture.ARM_64,
}
);
new apiv2.HttpRoute(this, `Route-${route.path}-${route.method}`, {
Expand Down

0 comments on commit 44ffcf4

Please sign in to comment.