https://pulumi.com logo
Title
m

most-napkin-6669

01/29/2023, 11:43 AM
Hey guys! I have created on AWS ECS a simple service and it runs perfect Now the problem is then i try to destroy the stack and Pulumi tries to delete that Service resource and hangs on its deletion for over 5 mins which is pretty long time for 1 resource deletion Can you guys give me some insights on how to attack this problem?
View Live: <https://app.pulumi.com/neurohelp/ecs-oscs/dev/updates/126>

     Type                                 Name                                                  Status              
 -   pulumi:pulumi:Stack                  ecs-oscs.dev                                 deleted             
 -   ├─ aws:ecs:Service                   ecs-oscs-dev-ecs-service                     deleted (434s)
e

echoing-dinner-19531

01/29/2023, 6:51 PM
I think pulumi is waiting for a full delete to happen, not just to schedule the delete and some resource do take a long time to delete. If this is an issue maybe worth raising an issue to discuss it on the aws repo. Might be there's a way to configure the provider to be faster here already, else that seems a reasonable thing to discuss.
s

steep-toddler-94095

01/29/2023, 9:21 PM
Yeah this seems somewhat normal to me. ECS takes a little while to drain/remove the tasks, which is a prereq to fully deleting the service. You can double check for yourself though if you delete the service from the CLI/UI