Describe the bug
Events module lambda is failing with a runtime error
To Reproduce
Steps to reproduce the behavior:
- Go to lambda console
- Create a test event with following sample payload
{ "version": "0", "id": "faff4b2f-4ec9-53b6-ecd0-a53370b1c088", "detail-type": "MediaLive Channel Alert", "source": "aws.medialive", "account": "123456789012", "time": "1970-01-01T00:00:00Z", "region": "us-east-1", "resources": ["arn:aws:medialive:us-east-1:123456789012:channel:123456"], "detail": { "alert_type": "Stopped Receiving UDP Input", "alarm_state": "set", "message": "Stopped receiving network data on [rtp://:5000]", "pipeline": "1" } }
- Click test and it's giving the following error
{ "errorMessage": "Unable to import module 'media_events': No module named 'media_events'", "errorType": "Runtime.ImportModuleError", "requestId": "2884cf68-be30-4721-a741-388c4e96c024", "stackTrace": [] }