I have an API endpoint, where I create a scheduled rule e.g. “website-a-scrape-weekly”. As a target I set a lambda that needs some additional data. I have passed down the json with this data so that I can directly access it in my lambda when is being invoked.
Problem:
Is there an easy way of also setting some meta data on the rule rather then the target? I am trying to query all rules in my dashboard and I need that data from the target.
Thanks
I know that for each rule I query, i can also query its targets, find the lambda one, get json and return together with the rule details. Is there an alternative way where I can prevent from listing all targets every time I query the rules?
Also, i have considered syncing it with a DB but it seems like an overkill for just trying to get rule’s meta data.