07/27/2022, 8:06 AM
Hey! i recently started working with Pulumi on AWS with python I'm trying to deploy tasks to ECS using Pulumi but i couldn't find anywhere how it can be done.. I am able to create ECS cluster and task-definition, but for some reason there is no option to deploy it with Task type(instead Service type) Is there any workaround to get past that? Or perhaps any future plans?
Guys i eventually was able to run ECS task by using pulumi-command package like this:
run_task_command = local.Command('run-task-command', create='aws ecs run-task...', delete='aws ecs run-task...', opts=pulumi.ResourceOptions(depends_on=[task_definition, ecs_cluster]))