skip to Main Content

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…

VIEW QUESTION

Amazon web services – i was trying o build a stack using aws cdk , application load balancer with two ec2 instance

@jsii/kernel.SerializationError: Passed to parameter props of new aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationTargetGroup: Unable to deserialize value as aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationTargetGroupProps | undefined ├── 🛑 Failing value is an object │ { '$jsii.struct': [Object] } ╰── 🔍 Failure reason(s): ╰─ Key 'targets': Unable to deserialize value as…

VIEW QUESTION
Back To Top
Search