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
已提问 2 个月前445 查看次数
2 回答
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
已回答 2 个月前
profile picture
专家
已审核 2 个月前
  • 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
已回答 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则