https://pulumi.com logo
Title
f

fast-river-57630

10/06/2021, 6:27 PM
ECS attached to EventBridge cron? Is it just aws.cloudwatch.EventTarget with a task definition arn?
c

crooked-pillow-11944

10/06/2021, 6:28 PM
Yep
f

fast-river-57630

10/06/2021, 6:29 PM
great. and it's not like a docker-based lambda where i can configure the entrypoint or command? If I do i need another task definition?
c

crooked-pillow-11944

10/06/2021, 6:32 PM
no, you just do an EventRule and an EventTarget I just finished writing up CodeBuild EventBridge with Python in case you need an example
f

fast-river-57630

10/06/2021, 6:33 PM
Sure. I'm in typescript but I can translate.
my app is already packaged as a docker image which might be part of my confusion here.
f

fast-river-57630

10/06/2021, 7:33 PM
So I ended up using aws.cloudwatch.onSchedule( (e) => taskDef.run(..) with the overrides for my custom command that I want to run. Now, just ecs:RunTask permission issues. That generates a lambda that needs a role somewhere
hrm.
* Lambda will be created by calling [createCallbackFunction] on it.  If more control over the
 * resultant AWS Lambda is required, clients can call [createCallbackFunction] directly and pass the
 * result of that to any code that needs an EventHandler.
can't actually find createCallbackFunction. there is one in pulumi-cloud but not in anything i already have