Hey everyone! I'm trying to set up a maintenance mode for the alarms I've created in my AWS account. I recently discovered that AWS has released mute rules for alarms that would be perfect for my needs. While I can easily set this up using the console, I'm interested in automating the process by writing a function that generates mute rules for all alarms containing a specific string. Unfortunately, it seems like neither the AWS CLI nor the Boto3 SDK supports this feature yet. Does anyone know when mute rules might be available for the CLI or in Boto3? I'm referencing the feature 'Configure alarm mute rules' in the AWS documentation for details. Additionally, I checked the latest Boto3 documentation but couldn't find any mention of this feature.
2 Answers
You might want to look into the API reference for creating mute rules. There's an API endpoint called 'PutAlarmMuteRule' which could help you with that. It allows you to set mute rules for specific alarms and define targets for which alarms to silence. Just make sure to check the API documentation thoroughly to see how you can use it appropriately.
Totally get your pain. While there’s the mute rules feature available in the console, it’s true that the CLI and Boto3 are lagging behind in terms of support. Until they update the SDK and tools, using the console might be your only option. Keep an eye on the AWS updates for news on this!
Yeah, I’m really hoping they roll this out soon. It would make automating workflows so much smoother!

I've tried the CLI commands for this, but they didn't work and gave me errors, even in CloudShell. It's frustrating! Maybe we need to wait for an update that adds support.