aws_cdk.aws_lambda.Code: from_inline method code size limit incorrect #30761
Labels
@aws-cdk/aws-lambda
Related to AWS Lambda
bug
This issue is a bug.
documentation
This is a problem with documentation.
effort/small
Small work item – less than a day of effort
p2
Describe the issue
The CDK documentation for
from_inline
states thecode
parameter has a size limit of 4KiB. However, this limit is actually 4MB according to the CloudFormation documentation for ZipFile size, which is whatfrom_inline
will synthesize to.I tested this by providing a string that was larger than 4KB, and CDK successfully synthesized a template without error.
Links
https://docs.aws.amazon.com/cdk/api/v2/python/aws_cdk.aws_lambda/Code.html#aws_cdk.aws_lambda.Code.from_inline
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html
The text was updated successfully, but these errors were encountered: