1 Answer
- Newest
- Most votes
- Most comments
1
I just figured it out. For this I had to use two components, one for the dependencies and another one for the lambda function.
This is the component for the dependency of the function
{
"RecipeFormatVersion": "2020-01-25",
"ComponentName": "lambda_function_depedencies",
"ComponentDescription": "Install Dependecies for Lambda Function",
"ComponentPublisher": "Ed",
"ComponentVersion": "1.0.0",
"Manifests": [
{
"Lifecycle": {
"install": "python3 -m pip install --user boto3"
}
}
]
}
This is the updated version of the lambda component
{
"lambdaArn": "arn:aws:lambda:eu-central-1:109139691401:function:lambda_greengrass:${lambda_function_version}",
"componentName": "signal_processing_lambda",
"componentVersion": "${lambda_component_version}",
"componentDependencies": {
"lambda_function_depedencies": {
"versionRequirement": "1.0.0",
"dependencyType": "HARD"
}
},
"componentLambdaParameters": {
"eventSources": [
{
"topic": "thesis/v1/greengrass/lambda/exp1",
"type": "IOT_CORE"
}
],
"maxQueueSize": 1000,
"maxInstancesCount": 100,
"maxIdleTimeInSeconds": 60,
"timeoutInSeconds": 3,
"statusTimeoutInSeconds": 60,
"pinned": false,
"inputPayloadEncodingType": "json",
"linuxProcessParams": {
"isolationMode": "NoContainer",
"containerParams": {
"memorySizeInKB": 16384,
"mountROSysfs": false,
"volumes": [],
"devices": []
}
}
}
}
answered 7 months ago
Relevant content
- asked 3 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated a year ago