Skip to content
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

Add a shortcut for a CloudWatch alarm triggering a Lambda Function #106

Open
mcwhittemore opened this issue Jul 14, 2020 · 3 comments
Open

Comments

@mcwhittemore
Copy link
Contributor

Getting a Lambda Function to be triggered by a CloudWatch Alarm requires one to create a SNS Topic and Lambda permission and wire them up correctly to the Alarm and Lambda function. These are boilerplate and feel like something we could shortcut so as to simplify the process of figuring this out. That said, I'm not sure what sort of barriers we want on the shortcuts we offer here. Any thoughts on if this makes the mark?

@rclark
Copy link
Contributor

rclark commented Jul 14, 2020

I think this'd be meaningful. AWS doesn't have a direct alarm --> lambda pathway yet?

@mcwhittemore
Copy link
Contributor Author

Not that I have found and the example doc that hitting the top of google for me shows how to set this up via PowerShell which is pretty hard to parse. https://aws.amazon.com/blogs/developer/send-real-time-amazon-cloudwatch-alarm-notifications-to-amazon-chime/

@rclark
Copy link
Contributor

rclark commented Jul 15, 2020

CloudWatch API reference docs confirm that you can only use certain services as alarm actions, and lambda isn't included. So yeah, you need to stick an SNS topic in between the alarm and the Lambda.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants