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

Lambda Support as CloudWatch Alarm Action #560

Open
rememberYou opened this issue Aug 20, 2024 · 1 comment
Open

Lambda Support as CloudWatch Alarm Action #560

rememberYou opened this issue Aug 20, 2024 · 1 comment
Labels
feature-request New feature needs-newer-aws-cdk-lib Requires bumping up our peer dependency.

Comments

@rememberYou
Copy link

Feature scope

CloudWatch

Describe your suggested feature

Since the end of December 2023, AWS now supports the triggering of a Lambda function as a CloudWatch Alarm action target (cf. https://aws.amazon.com/about-aws/whats-new/2023/12/amazon-cloudwatch-alarms-lambda-change-action/). This is useful, for example, when you want to modify the email body before sending it to another SNS topic where a list of email addresses is subscribed.

Currently, cdk-monitoring-constructs only supports SNS topics like CloudWatch Alarms action. Would it be possible to implement Lambda as an Alarm action as well?

@rememberYou rememberYou added the feature-request New feature label Aug 20, 2024
@echeung-amzn echeung-amzn added the needs-newer-aws-cdk-lib Requires bumping up our peer dependency. label Aug 23, 2024
@echeung-amzn
Copy link
Member

Seems reasonable to add, but we'd need to bump up to >= v2.119.0 first (we're currently at >= v2.112.0).

aws/aws-cdk@b9f4923

In the meantime if you're already using a newer version of aws-cdk-lib, you can implement something like how SNS is handled, but using LambdaAction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature needs-newer-aws-cdk-lib Requires bumping up our peer dependency.
Projects
None yet
Development

No branches or pull requests

2 participants