https://pulumi.com logo
Title
r

rapid-engineer-12203

04/04/2023, 7:57 PM
Hey, I am creating MetricAlarms in the pulumi and I am trying to add alarmActions to the metric so that it will update the CTI with a ticket. For that I have tried to add a Cloudwatch ARN inside alarmActions then it fails with an error
invalid arn type
it only accepts a topic arn. Does any one know how to update alarmActions to use a cloudwatch arn ?
l

little-cartoon-10569

04/04/2023, 8:43 PM
You want to record an event to CloudWatch when a CloudWatch LogMetricFilter is tripped? 😕
r

rapid-engineer-12203

04/04/2023, 8:45 PM
yes
l

little-cartoon-10569

04/04/2023, 8:46 PM
Why? Isn't the information already in CloudWatch?
And to answer the question: you would need to do this yourself. Maybe you could have a lambda inspecting the topic, and doing something with CloudWatch after?
Alarms are for sending notifications. CloudWatch is a database of events, not a notification-sending service. You cannot do what you've described natively, it's not what the services were designed for.