This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Creating an AWS Lambda Layer with pandas and pyarrow is harder than it might seem, | |
| // as simply `pip install pandas pyarrow` will lead to a deployment package that is > 250 MB | |
| // which is not allowed by AWS Lambda. | |
| // In this snippet, that deployment package is trimmed down, to make it fit (and still work) | |
| import * as lambda from "aws-cdk-lib/aws-lambda"; | |
| const layerInstallCommand = [ | |
| "bash", | |
| "-c", |