I'm using AWS Greengrass V2 with an Lambda based component. The Lambda Sourcode contains code which should controll the gpio pins of the raspberry pi.
The Lambda is successfully deployed to the GG Core Device (=RaspberryPI). Unfortunately the Lambda throws an error: no such file or directory, open '/sys/class/gpio/export'
I explicit defined in the greengrass component that the lambda is not executed in a Greengrass Container. i choosed the option "No Container" But nevertheless the code can't finde or access /sys/class/gpio/export to control the gpio pins.
if i execute the same code from the lambda function in a local nodejs project directly on the raspberry pi. The code works. The Problem is not the code.
i assume that the problem is either an isolation of the lambda runtime, or that the user ggc_user doesn't have enough permissions.
can someone give me an hint, how to fix this problem?
Kind Regards Stefan