You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to extend custodian so that I can parse custom events.
Initially, all i'm trying to do is get it so that when a custom event is received in the default eventbridge uses the filter to parse the jmespath and perform an action. But I can't get this part working
I've added it to the resource map and everything deploys ok, it just doesn't fire off the lambda.
I feel like i'm missing quite fundamental about how the class is constructed but I don't know what that is.
I would really appreciate it if someone can help me out here!
I've created a very simple class to look for "sltest" events
from c7n.query import (QueryResourceManager, TypeInfo)
from c7n.manager import resources
@resources.register('sltest')
class sltest(QueryResourceManager):
class resource_type(TypeInfo):
service = 'sltest'
name = 'sltest'
id = 'sltest'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to extend custodian so that I can parse custom events.
Initially, all i'm trying to do is get it so that when a custom event is received in the default eventbridge uses the filter to parse the jmespath and perform an action. But I can't get this part working
I've added it to the resource map and everything deploys ok, it just doesn't fire off the lambda.
I feel like i'm missing quite fundamental about how the class is constructed but I don't know what that is.
I would really appreciate it if someone can help me out here!
I've created a very simple class to look for "sltest" events
and deployed this policy
and the event looks like this
Beta Was this translation helpful? Give feedback.
All reactions