---
title: "Discussion on \"Automate Disabling And Re-enabling AWS Cloudwatch Alarms During Maintenance Window\" | Hashnode"
description: "Discussion on \"Automate Disabling And Re-enabling AWS Cloudwatch Alarms During Maintenance Window\". In this blog we create script in which will disable all active cloudwatch alarms before maintenance/deployment window and enable it back"
url: "https://hashnode.com/posts/automate-disabling-and-re-enabling-aws-cloudwatch-alarms-during-maintenance-window/61d5c738e2f29f0805e13d67"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Automate Disabling And Re-enabling AWS Cloudwatch Alarms During Maintenance Window](https://dheerajchoudhary.hashnode.dev/automate-disabling-and-re-enabling-aws-cloudwatch-alarms-during-maintenance-window?utm_source=hashnode&utm_medium=feed)

In this blog we create script in which will disable all active cloudwatch alarms before maintenance/deployment window and enable it back

Jan 5, 2022 · 3 min read · dheerajchoudhary.hashnode.dev  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#cloud-computing](https://hashnode.com/tag/cloud-computing)
-   [#python](https://hashnode.com/tag/python)
-   [#amazon-web-services](https://hashnode.com/tag/amazon-web-services)
-   [#amazon](https://hashnode.com/tag/amazon)

## Written by

[Dheeraj Choudhary](https://hashnode.com/@Dheeraj-Choudhary)

@Dheeraj-Choudhary · India

  
[View profile](https://hashnode.com/@Dheeraj-Choudhary)

Lets start from somewhere

I am a Technology Designer and YouTuber who likes to write Technical Blogs and contribute to Open Source which mainly includes Cloud, DevOps,Linux etc.

## Responses 1

Markdown supported · ⌘↵ to post

[Harish Pandey](https://hashnode.com/@harishnpandey)

[May 2, 2022](https://hashnode.com/posts/automate-disabling-and-re-enabling-aws-cloudwatch-alarms-during-maintenance-window/61d5c738e2f29f0805e13d67/comment/627056799ed78401a6408848)

Hi Dheeraj,

Nice blog , I have similar situation where we receive so many cloudwatch alerts during maintenance which are mostly non actionable.

I would like to know , how we can use above script to connect to AWS account and disable alarms only for my applications without touching others.

In short where we can run above script as for now we only have read only access to AWS account.

1) Connect to AWS account 2) Disable only my application specific alarms (AWS account is shared by multiple application team )

Appreciate your guidance on above ask.

Thanks, Harish

[Dheeraj Choudhary](https://hashnode.com/@Dheeraj-Choudhary)

[May 3, 2022](https://hashnode.com/posts/automate-disabling-and-re-enabling-aws-cloudwatch-alarms-during-maintenance-window/61d5c738e2f29f0805e13d67/comment/627056799ed78401a6408848#reply-6270c4149ed78401a6408dde)

With read only access this might not run. What you can do is you can write lambda function within the accounts and create one jenkins job to invoke these lambda function based on your maintainence window.
