For both Windows and MacOS, somewhat more convoluted than expected — AWS Cloud Development Kit makes it super easy to compress and deploy a Lambda layer: const layer = new LayerVersion(stack, 'sample-layer', {
code: Code.fromAsset('./layers/build/sample-layer'),
...
}); But how do we prepare the layer folder in the first place? Building Binary Python Dependencies For AMD64 And ARM64 Lambda Layers
Specifically, a Psycopg Python Lambda Layer For SQLAlchemy And Postgresawstip.com