Any way I can setup alerts to be send to multiple people without them having to do anything?

0

I want to setup alerts to be sent out to relevant people when there is a drop in accuracy performance on any given day. How can I do it without requiring the people in question to do anything on their part? Can I do it from athena or cron job or aws lambda? i see that in quicksight I cannot sign up other people to receive alerts from a dashboard.

asked a year ago356 views
1 Answer
1

Yes, it's possible to set up automated alerts to be sent out to multiple people without them requiring to do anything on their part. You can use a combination of services like Amazon CloudWatch, AWS Lambda, and Amazon SNS (Simple Notification Service) to accomplish this. Here is a basic workflow:

  1. Amazon CloudWatch: This service can be used to monitor and log your application's performance metrics. You can set up an alarm in CloudWatch to trigger when the accuracy performance drops below a certain threshold.

  2. AWS Lambda: When the CloudWatch alarm is triggered, it can invoke an AWS Lambda function. This function can gather relevant information about the event, such as which specific performance metric triggered the alarm and the current value of that metric.

  3. Amazon SNS (Simple Notification Service): The Lambda function can then publish a message to an SNS topic. When a message is published to an SNS topic, it's immediately sent to all subscribers of that topic. Subscribers can be email addresses, SMS phone numbers, or even other AWS services.

Here's a more detailed step-by-step process:

  1. Set up a CloudWatch Alarm:

    • Go to the CloudWatch console in AWS.
    • Select 'Alarms' > 'Create alarm'.
    • In the 'Create Alarm' wizard, set the conditions for your alarm. You'll need to specify the performance metric (accuracy in your case) and the condition that triggers the alarm (when accuracy drops below a certain value).
  2. Create a Lambda Function:

    • Go to the Lambda console in AWS.
    • Select 'Create function'.
    • In the 'Create function' form, give your function a name and select an appropriate runtime (like Python or Node.js).
    • In the function code, write a script that will be triggered when the CloudWatch alarm goes off. This script should gather relevant event information and then publish a message to an SNS topic.
  3. Set up an SNS Topic and Subscribers:

    • Go to the SNS console in AWS.
    • Select 'Topics' > 'Create topic'.
    • Give your topic a name and then create it.
    • Once the topic is created, add the email addresses of the people who should receive the alerts as subscribers.
  4. Link the CloudWatch Alarm to the Lambda Function:

    • Go back to the CloudWatch console.
    • Select your alarm and then select 'Actions' > 'Modify alarm'.
    • In the 'Actions' section, select 'Add notification'.
    • In the 'Send notification to...' dropdown, select your Lambda function.

With this setup, when the CloudWatch alarm is triggered, it will invoke the Lambda function, which will then send an alert to all subscribers of the SNS topic.

Keep in mind that you might need to adjust this workflow based on the specifics of your application and the AWS services you're using. For instance, you might need to use other AWS services if you're logging performance metrics in a database like Amazon RDS or DynamoDB.

profile picture
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions