Description
I'm trying to package both https://github.com/aws/aws-lambda-python-runtime-interface-client and this extension into a base Docker image so our service developers need to publish a single image containing their webserver and SQS/SNS/etc handler code.
The problem ofcourse is that if we're running in SQS handler mode, this extension will start up anyway and run into various error states.
I've tried to add a simple bash script that conditionally invokes this extension (which is placed outside /opt/extensions), but apparently Lambda considers an extension exit 0
to be a crash.
Feel free to say no, but would it make sense to have a flag for this extension which when set, would cause this extension to do nothing?
Any other ideas are greatly appreciated