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.
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 includekubectl
,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 ofaws-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.