How to temporarily change the state of an alarm in CloudWatch

0 votes

Hi Guys,

I have created one alarm in AWS. I want to change the state of an alarm temporarily. How can I do that?

Nov 18, 2020 in AWS by akhtar
• 38,260 points
6,659 views

1 answer to this question.

+1 vote

Hi@akhtar,

You can temporarily set the state of an alarm for testing purposes. When the updated state differs from the previous value, the action configured for the appropriate state is invoked. The following example uses the set-alarm-state command to temporarily change the state of an Amazon CloudWatch alarm.

$ aws cloudwatch set-alarm-state --alarm-name "myalarm" --state-value ALARM --state-reason "testing purposes"
answered Nov 18, 2020 by MD
• 95,460 points

Related Questions In AWS

0 votes
1 answer

How to change the name of a repository in AWS CodeCommit?

Hi@akhtar, You can rename a repository. The repository name ...READ MORE

answered Nov 25, 2020 in AWS by MD
• 95,460 points
2,783 views
0 votes
1 answer

How to get the contents of a folder in an AWS CodeCommit repository?

Hi@akhtar, The following get-folder example demonstrates how to get the ...READ MORE

answered Nov 25, 2020 in AWS by MD
• 95,460 points

edited Aug 4, 2023 by Khan Sarfaraz 2,756 views
0 votes
1 answer

Pass account id of an AWS sub account using a variable as an argument in CloudWatch Alarm Actions with python (boto3)?

Python String and Integer concatenation >>> print("arn:aws:swf:us-east-2:{0}:action/actions/AWS_EC2.InstanceId.Stop/1.0".format(acccnum)) arn:aws:swf:us-east-2:12312312312312:action/actions/AWS_EC2.InstanceId.Stop/1.0 >>> print("arn:aws:swf:us-east-2:" ...READ MORE

answered Oct 5, 2018 in AWS by Priyaj
• 58,020 points
1,587 views
0 votes
1 answer
+1 vote
2 answers
0 votes
1 answer

How to check the state of the snapshot from the command line in AWS?

Hi@akhtar, You can check the state of the snapshot ...READ MORE

answered Oct 20, 2020 in AWS by MD
• 95,460 points
1,320 views
0 votes
1 answer

How to download the public key of an asymmetric CMK in AWS KMS?

Hi@akhtar, The following get-public-key example downloads the public key of ...READ MORE

answered Nov 20, 2020 in AWS by MD
• 95,460 points
789 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP