From eb6be5f3e10db0bbb3985addee9b342a1b79df06 Mon Sep 17 00:00:00 2001 From: Michael Sambol Date: Sun, 7 Jul 2024 09:14:21 -0500 Subject: [PATCH 1/2] 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); From cc26be6375be42a571cded354ec50be49f68a451 Mon Sep 17 00:00:00 2001 From: Michael Sambol Date: Sun, 21 Jul 2024 12:25:51 -0500 Subject: [PATCH 2/2] change to size of zip file --- 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 840103b92d652..5db2501251a09 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 4MB) + * @param code The actual handler code (the resulting zip file cannot exceed 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 4a2bcf70a2d85..daa61b9f84272 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 4MB) + * @param code The actual handler code (the resulting zip file cannot exceed 4MB) */ public static fromInline(code: string): InlineCode { return new InlineCode(code);