From 4937ee1175e497ce5b166fc7ac87ca6f53c7b0e5 Mon Sep 17 00:00:00 2001 From: Michael Sambol Date: Tue, 10 Dec 2024 15:56:37 -0800 Subject: [PATCH] chore(lambda): inline code size limit is 4MB (#30773) ### Issue # (if applicable) Closes #30761. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- 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..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 4KiB) + * @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 443b48dfa396c..83991d2d613bf 100644 --- a/packages/aws-cdk-lib/aws-lambda/lib/code.ts +++ b/packages/aws-cdk-lib/aws-lambda/lib/code.ts @@ -45,7 +45,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 (the resulting zip file cannot exceed 4MB) */ public static fromInline(code: string): InlineCode { return new InlineCode(code);