Reduce CfnParameters for lambda.Function #3266
Labels
@aws-cdk/aws-lambda
Related to AWS Lambda
guidance
Question that needs advice or information.
package/cfn
Related to the CFN layer (L1)
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
I'm submitting a ...
What is the current behavior?
Currently for each lambda 2 CfnParameters are created (
LambdaSourceBucketNameParameter
andLambdaSourceObjectKeyParameter
)As you can see here: https://github.com/awslabs/aws-cdk/blob/4a0272db5eb9aae5f440bb0813fdbad6514b60c3/packages/%40aws-cdk/aws-lambda/lib/code.ts#L209
CloudFormation has a limitation of 60 parameters, meaning we can only have 30 lambda functions in a single stack
Add an ability to suppress creation of these parameters, or at least check for the duplicated values (for example
LambdaSourceBucketNameParameter
is duplicated in my case, since all lambda code assets are uploaded to the same CDKToolkit S3 bucket)Do not add the additional limitations
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: