Creating trigger for a lambda function

25 views
Skip to first unread message

Francesco Oghabi

unread,
Aug 1, 2022, 12:28:46 PM8/1/22
to cloudtools-dev
Hi there, i would like to create link  trigger event (create s3 obj in  bucket) for an existing lambda function. i found this old topic but it's not working on my cf stack.


that suggest this:
dataloader_retrier_scheduled_rule = t.add_resource(
events.Rule( "DataloaderRetrierEventTriggerRule", Name=suffix("DataloaderRetrierEventTriggerRule"), 
Description="Reminding the lambda to read from the retry SQS", 
 Targets=[events.Target( Id=suffix("DataloaderRetrierEventTriggerTarget"), Arn=tr.GetAtt("DataloaderRetrier", "Arn"), Input='{"Hey":"WAKE UP!"}' )], State='ENABLED', ScheduleExpression="rate(1 minute)", DependsOn="DataloaderRetrier" )),
 
Have you got any suggestion? In documentation i cant find any information on that.


s3.png
Reply all
Reply to author
Forward
0 new messages