From 6edb5df987925c522614c8e422051ee376bdc910 Mon Sep 17 00:00:00 2001 From: Michael Sambol Date: Sun, 7 Jul 2024 09:14:21 -0500 Subject: [PATCH] chore(lambda): inline code size limit is 4MB --- packages/aws-cdk-lib/aws-appsync/lib/code.ts | 2 +- packages/aws-cdk-lib/aws-lambda/lib/code.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/aws-cdk-lib/aws-appsync/lib/code.ts b/packages/aws-cdk-lib/aws-appsync/lib/code.ts index d38a2ee672f1f..840103b92d652 100644 --- a/packages/aws-cdk-lib/aws-appsync/lib/code.ts +++ b/packages/aws-cdk-lib/aws-appsync/lib/code.ts @@ -35,7 +35,7 @@ export abstract class Code { /** * Inline code for AppSync function * @returns `InlineCode` with inline code. - * @param code The actual handler code (limited to 4KiB) + * @param code The actual handler code (limited to 4MB) */ public static fromInline(code: string): InlineCode { return new InlineCode(code); diff --git a/packages/aws-cdk-lib/aws-lambda/lib/code.ts b/packages/aws-cdk-lib/aws-lambda/lib/code.ts index dd7fc905da36f..4a2bcf70a2d85 100644 --- a/packages/aws-cdk-lib/aws-lambda/lib/code.ts +++ b/packages/aws-cdk-lib/aws-lambda/lib/code.ts @@ -32,7 +32,7 @@ export abstract class Code { /** * Inline code for Lambda handler * @returns `LambdaInlineCode` with inline code. - * @param code The actual handler code (limited to 4KiB) + * @param code The actual handler code (limited to 4MB) */ public static fromInline(code: string): InlineCode { return new InlineCode(code);