https://pulumi.com logo
Title
i

icy-jordan-58549

03/31/2021, 4:08 PM
I can’t find how to run just regular task inside FARGATE, any ideas where it’s hidden in the SDK? Thanks
Or if you’re using Typescript, there are some higher-level abstractions: https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/awsx/ecs/#task-definitions
i

icy-jordan-58549

03/31/2021, 4:33 PM
task definition doesn’t run the task itself what I understand
r

red-match-15116

03/31/2021, 4:42 PM
Ah good point, I see what you mean.
I can’t even find that in the console TBH, how do you get to that window you posted a screenshot of?
f

faint-table-42725

03/31/2021, 9:51 PM
i

icy-jordan-58549

04/01/2021, 9:04 AM
not sure that’s exactly what I need, @faint-table-42725 that approach runs task by using some trigger, itself task.run({ cluster }) doesn’t work from pulumi program.
g

gifted-yak-28427

04/01/2021, 9:49 AM
I just ran into this last week. Didn't spend a lot of time looking into it but i didn't see an obvious solution, ended up just running the tasks outside of pulumi.
f

faint-table-42725

04/01/2021, 4:30 PM
@icy-jordan-58549 There’s no built-in way to trigger a task from within the program itself. An alternative to my previous suggestion is you could use Automation API and then run the task using the AWS SDK after the stack completes.
i

icy-jordan-58549

04/02/2021, 5:18 AM
Thanks for the reply! I appreciate that