Closed maurotag closed 1 month ago
I solved the issue by myself. Lambda has a runtime support policy. The issue is this decoder was developed some years ago and Lambda has deprecaded Python 3.7. I replaced the runtime version of Python and NodeJS with the current ones running in the machine into the template.yaml file in \aws-iot-core-lorawan-main\transform_binary_payload.
(...) TransformLoRaWANBinaryPayloadFunctionPython: Type: AWS::Serverless::Function Name: !Sub "${AWS::StackName}-TransformLoRaWANBinaryPayloadFunctionPython" Properties: CodeUri: src-iotrule-transformation Handler: app.lambda_handler Runtime: python3.9 Layers:
(...)
TransformLoRaWANBinaryPayloadFunctionNode: Type: AWS::Serverless::Function Condition: IsNodeSupportEnabled Name: !Sub "${AWS::StackName}-TransformLoRaWANBinaryPayloadFunctionNode" Properties: CodeUri: src-iotrule-transformation-nodejs Handler: index.handler Runtime: nodejs20.x Layers:
(...)
Hi
I am trying to implement the decoder using the instructions Approach A: using simulated decoder but it is generating the error: Building functions with python3.7 is no longer supported
I used AWS SAM CLI and AWS Cloud9 with same results.