aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.68k stars 3.93k forks source link

(aws-cdk-lib): Reduce module size via new bundling strategy #16442

Open njlynch opened 3 years ago

njlynch commented 3 years ago

As of September 2021, the current unpacked size of aws-cdk-lib is 161 MB. This is largely due to bundled dependencies, including the entire AWS CLI, and Lambda layers which include kubectl, helm, etc. To further complicate matters, there is an upcoming need to be able to reference multiple versions of each of the above, which will balloon the size of aws-cdk-lib to massive proportions.

We need to come up with a more clever and robust strategy for these dependencies. One such mechanism has been proposed -- at a high level -- in https://github.com/aws/aws-cdk-rfcs/issues/39. This is the tracking task for the implementation that follows either the above RFC or an alternative, equally clever, solution. See also https://github.com/aws/aws-cdk/issues/13993#issuecomment-871259375.

DesAWSume commented 2 years ago

keen to know, if there is any movement toward the new bundling strategy?