01/26/2023, 12:39 PM
Hi, I'm running ec2 services on ecs and my tasks are running using network mode "host", which means I can not run more than one instance of the same container. Pulumi up is stuck after building and pushing an image because the same service tries to create a steady task using the new task definition revision but the container throws EADDRINUSE when trying to listen on the wanted port. I tried using deleteBeforeReplace on the service and taskDefinition but it doesn't seem to do anything. Is there a way (in the same pulumi up) to stop the old task before the new one reaches steady state? thanks!