Skip to content

Commit

Permalink
chore(lambda): inline code size limit is 4MB (#30773)
Browse files Browse the repository at this point in the history
### 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>
  • Loading branch information
msambol and mergify[bot] authored Dec 10, 2024
1 parent c6c9f96 commit 4937ee1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-appsync/lib/code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-lambda/lib/code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4937ee1

Please sign in to comment.