how can i clearly delete the CloudWatch Rule

0

There is always a rule CW-Rule-CloudWatchLog exist even I deleted all group in console of CloudWatch. And each month has a billing for a rule 'CW-Rule-CloudWatchLog'. how can i clearly delete the CW-Rule-CloudWatchLog?

Henry
asked 2 months ago433 views
2 Answers
0

The CloudWatch rule you are referring to, should be an Event Bridge Rule (formerly known as CloudWatch Rule). Remember, a rule runs when an event matches the defined event pattern. EventBridge sends the event to the specified target.

To find out, go to your AWS management console and search for Amazon EventBridge -> Rules. You will see a list of Rules and check if matches with the one you are trying to delete.

You can check this by running CloudShell:

  1. AWS Management Console, start a Cloudshell session and issue the following command: "aws events list-rules --query 'Rules[*].Name'"
  2. Then, issue the following command to delete the rule: "aws events delete-rule --name <value>"

As matter of fact, ensure to delete the right rule to avoid unexpected behavior within your services.

Hope that helps !

AWS
Takeda
answered 2 months ago
profile picture
EXPERT
reviewed a month ago
  • Thanks for reply. But I have checked that there Just a default bus with no rules. Should I checked for all region by switch the menu on top-right?

0

Hi,

Yes, it is worth to check the billing report and the region the service is provisioned. If you want to check using aws command line, you may append the "--region <region_name>" to your command (example: aws events list-rules --query 'Rules[*].Name' --region <region_name>) like

aws events list-rules --query 'Rules[*].Name' --region us-east-1

hope that helps to find that resource

AWS
Takeda
answered 2 months 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