Amazon web services – How to ensure compatibility between my local dev environment and AWS Lambda runtime (AWS CDK V2)
I am currently having an issue with Python packages on AWS Lambda. I have defined a Lambda layer like this: my_layer = _lambda.LayerVersion( self, "MyLayer", code=_lambda.Code.from_asset("layer_code_directory"), compatible_runtimes=[_lambda.Runtime.PYTHON_3_12], description="Lambda Layer for common dependancies" ) The layer is used for common dependencies…