I have created a suite of cloudwatch alarms through terraform to monitor our services, but we do not need all alarms to be available in all environments.
I am looking for a way to be able to set an alarm to on or off depending on the environment.
There is no specific tag available in the resource aws_clouswatch_metric_alarm to set it.
I’ve tried though the account_id in metric_query, but not all of my alarms use metric_query and my solution has to be 100% repeatable. I have tried using an if-block. I have tried through aws_ssm_parameter values.
Nothing seems to be feasible. And there is no documentation I’ve found on this topic either. Certainly someone has implemented this.
Any help is appreciated.