Monitor Cloud Watch alarms on a schedule
Recipe ToolsMarketingDeveloper ToolAPI IntegrationApplication Monitoring
What it does
When a scheduled trigger fires every 5 minutes, this automation invokes an AWS Lambda function to evaluate system state. Based on the result, someone can disable, enable, or update the alarm in Cloud Watch.
Who it's for
Engineering teams who need to manage Cloud Watch alarms automatically on a fixed schedule.
How teams use this
Monitor system health on a cadence
Run the Lambda function every 5 minutes to check system metrics, then update the Cloud Watch alarm if thresholds are crossed. The team sees real-time alarm changes without manual intervention.
Silence alarms during maintenance windows
Disable the Cloud Watch alarm during scheduled maintenance by running this automation on a different schedule. Only the trigger timing changes, and the same Lambda logic applies.
Add escalation to a Slack channel
Include a step that publishes the Amazon SNS message to Slack so the team is notified when the alarm state changes. Set a condition to only notify if the alarm moves to a critical state.
How it works
- Run every 5 minutes. This automation starts on a schedule and checks in every 5 minutes to evaluate the current system state.
- Invoke the Lambda function. Call the AWS Lambda function to run the logic that determines what alarm state change is needed based on metrics.
- Notify via Amazon SNS. Send a message to Amazon SNS so other systems know the function ran and what the outcome was.
- Update the alarm in Cloud Watch. Set the Cloud Watch alarm to disabled, enabled, or a new state based on what the Lambda function determined.