I have 10 dynamo DB tables and I want to have 5 alarms per dynamo DB table, but only want to define those 5 alarms and not repeat them per table in terraform code. on AWS there will still be 50 alarms but I want them not to be repeated in terraform code.
My alarms across all tables will mostly look the same. i.e throughputexceeded exception, Latency Exception, and hence don't want to create separate alarms per table in terraform code. I want that anytime I create a table in terraform these basic alarms gets automatically created without someone needing to add them to terraform
How can I achieve this using terraform?