Locally testing lambda with --docker option and custom events

Hi I want to locally test my Lambda using the --docker option and pass an event to my function with -p. However it always gives me this error:
ENOTDIR: not a directory, open 'my_func_folder/events/obj_created.json/cloudformation-template-update-stack.json'
Why is that? Do I need to specify more parameters?
Thanks