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
feita há 2 meses445 visualizações
2 Respostas
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
respondido há 2 meses
profile picture
ESPECIALISTA
avaliado há 2 meses
  • 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
respondido há 2 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas