https://pulumi.com logo
Title
g

great-sunset-355

12/17/2021, 3:27 PM
Can anyone advise how to approach ECS Task docker images changes with Pulumi? I feel like I'm going to run into some chicken-egg problems. I'd like to just
git tag
for things to happen.
n

nutritious-shampoo-16116

12/17/2021, 4:15 PM
we use ECS Tasks, we have a github actions that runs a pulumi up passing an ENV var that equals to the image tag
so the task gets updated and a deploy starts
g

great-sunset-355

12/18/2021, 6:34 AM
thanks, I was thinking about the same approach, so I'll go for it.
@nutritious-shampoo-16116 Do you run any custom code to check if ECS Task deployment succeed or failed? I'm using a classic provider and it simply deploys the ECS Tasks and exits, however, the tasks may fail. So my question is what to do about that? I think it would be nice that Pipeline fails if ECS deployment fails
n

nutritious-shampoo-16116

12/21/2021, 2:23 PM
pulumi supports now
wait_for_steady_state
it depends strictly on the LB healthcheck tho
g

great-sunset-355

12/21/2021, 2:33 PM
thanks, good to know. I've been playing with AWS Native provider and that seemed to be waiting for Task to come to the RUNNIN state, however, it was waiting much longer sometimes.