Skip to content

Commit 4937ee1

Browse files
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>
1 parent c6c9f96 commit 4937ee1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/aws-cdk-lib/aws-appsync/lib/code.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export abstract class Code {
3535
/**
3636
* Inline code for AppSync function
3737
* @returns `InlineCode` with inline code.
38-
* @param code The actual handler code (limited to 4KiB)
38+
* @param code The actual handler code (the resulting zip file cannot exceed 4MB)
3939
*/
4040
public static fromInline(code: string): InlineCode {
4141
return new InlineCode(code);

packages/aws-cdk-lib/aws-lambda/lib/code.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export abstract class Code {
4545
/**
4646
* Inline code for Lambda handler
4747
* @returns `LambdaInlineCode` with inline code.
48-
* @param code The actual handler code (limited to 4KiB)
48+
* @param code The actual handler code (the resulting zip file cannot exceed 4MB)
4949
*/
5050
public static fromInline(code: string): InlineCode {
5151
return new InlineCode(code);

0 commit comments

Comments
 (0)