I am trying to create a python function that can be deployed into lambda BUT using Bazel.
I am able to create the binary file with Bazel (that runs my python code) but when I am trying to execute that binary in AWS Lambda it fails rudely.
Binary does not have the expected method signature for the lambda handler function.
This is my BUILD file:
py_binary(
name = 'say_hello',
main = 'main.py',
srcs = ['main.py']
)
This is main.py:
def say_hello(event, context):
print('hello')
How can I force Bazel to "accept" this method signature?