https://pulumi.com logo
#general
Title
# general
b

boundless-angle-56560

05/11/2021, 1:12 PM
Hi, had one question about AWS ECS. According to this article, it is possible on ECS to run a standalone task. But it seems that pulumi only supports attaching task to a service. Does anybody know if Pulumi can do that ?
b

brave-planet-10645

05/11/2021, 2:16 PM
That's correct. If you wanted to run a task, you could look at the code here and then either curl the apigateway endpoint if you use the exact code in the example, or you could not use the apigateway and just run the code once the task definition is set up. You're running code after all
b

boundless-angle-56560

05/11/2021, 2:48 PM
so it is done via AWS Lambda ?
sounds kinda heavyweight to define API endpoint only to trigger one time container
or perhaps I am not fully understanding your remark: "_or you could not use the apigateway and just run the code once the task definition is set up. You're running code after all"_
hmm I see, the task.run
but that is available only in the crosswalk but I believe the crosswalk is not supportet for Python which I am using
b

brave-planet-10645

05/11/2021, 3:25 PM
Is the task supposed to be long running or is it one that just runs some code and then stops?
b

boundless-angle-56560

05/11/2021, 6:06 PM
just a single batch code that is supposed to be executed just once
2 Views