Using AWS CDK v2, I want to deploy two lambda functions. As both depend on pandas, I want to deploy a layer first, which has pandas and its dependencies in requirements.txt located at entry.
One of the lambda functions also depends on pyarrow, which I put into the requirements.txt located at entry of that lambda function. As both pyarrow and pandas depend numpy, I currently end up with numpy and its dependencies being installed both in the layer and that lambda function, which obviously isn't what I want.
In the end, I'm looking for a way to pass --no-deps to the pip installation of requirements.txt of the lambda function that depends on pyarrow. Any ideas how to achieve this?
pyarrow --no-depsin yourrequirements.txtfile?