-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lambda Function #21
Comments
What is the test event you are using for them look like? |
I noticed there was no events posted in Slack, I decided to form an event in the Lambda Test section: |
The error that you have shared above makes it seem like a field either doesn't exist or isn't in the right format. Have you tried the sample AWS Health CloudWatch events to see if it works? They can be accessed under the CloudWatch events console once you choose the Health service by clicking show sample events: Here is an example of sample event that you could use to test your function: |
Thank you, it now works with a sample test but now I need to figure why the events are not being updated in CloudWatch. |
I am getting errors when running a test for both the SNS Notification and Slack Notification Lambda Functions.
NodeJS:
START RequestId: 3978d1d4-fe10-11e6-b22e-073bd615aa3d Version: $LATEST 2017-02-28T23:47:15.226Z 3978d1d4-fe10-11e6-b22e-073bd615aa3d TypeError: Cannot read property '0' of undefined at exports.handler (/var/task/index.js:10:50)
Python: `TART RequestId: fb08727a-fe12-11e6-8e2d-e30405996e54 Version: $LATEST
"eventDescription": KeyError
Traceback (most recent call last):
File "/var/task/index.py", line 13, in handler
message = str(event['detail']['eventDescription'][0]['latestDescription'] + "
<https://phd.aws.amazon.com/phd/home?region=us-east-2#/event-log?eventID=" + event['detail']['eventArn'] + "|Click here> for details.")
KeyError: 'eventDescription'
The text was updated successfully, but these errors were encountered: