https://pulumi.com logo
Title
r

refined-printer-82490

03/30/2023, 7:07 AM
Hi team, I'm just getting started with Pulumi - experimenting with the container service on AWS template, but running into a problem already. The first time I created the stack, everything ran fine. I deleted it - also fine. However, running it again this morning, it ran for 30 minutes without completing (fargate service didn't complete), and now trying to destroy the resources that were created is also hanging..
View in Browser (Ctrl+O): <https://app.pulumi.com/markns/my-container-service/dev/updates/9>

     Type                      Name                      Status
     pulumi:pulumi:Stack       my-container-service-dev
 -   └─ aws:ec2:SecurityGroup  service-mns-sg            deleting (215s)
What should I do here? Go and delete the resources manually?
I manually deleted the loadbalancer resource which has allowed the other resources to be deleted. ¯\_(ツ)_/¯
e

echoing-dinner-19531

03/30/2023, 8:23 AM
That sounds like a dependency didn't track right, system should have been deleting the loadbalancer first. Might be needed an explicit dependsOn added if there weren't any implicit dependencies because of properties.
r

refined-printer-82490

03/30/2023, 8:35 AM
Perhaps - although that would have also affected the first
pulumi destroy
wouldn't it? Or is the order of the destroy non-deterministic?
e

echoing-dinner-19531

03/30/2023, 8:36 AM
Its non-deterministic because it tries to do as much as possible in parallel.
r

refined-printer-82490

03/30/2023, 8:36 AM
ah I see