https://pulumi.com logo
#general
Title
# general
l

late-printer-99022

01/13/2020, 12:33 PM
@ - it is possible that Pulumi forget to remove some resources ? I have tried https://www.pulumi.com/blog/kubernetes-ingress-with-aws-alb-ingress-controller-and-pulumi-crosswalk/ multiple times and removed resources using deletion of code. Today I found there are 2 ALB load-balancer. So, I think. It forget to remove some load-balancer . I assume, If I comment out the code and run pulumi up, it should remove all resources.
b

better-actor-92669

01/13/2020, 1:40 PM
Hi @late-printer-99022! What I would do is
pulumi stack export
to a file or to STDOUT. Then, I would look for the specific URN of the resource you want to delete and issue
pulumi destroy -t <URN>
l

late-printer-99022

01/14/2020, 12:29 PM
@better-actor-92669 but my question is , why there is a dangling resources create on the first place. I was going though the console so I got to know, that something not deleted.
b

better-actor-92669

01/14/2020, 12:34 PM
I do not know. I am just a pulumi user as you are. I offered you a workaround to solve your issue, but it is impossible to investigate the root cause without looking at your code. I think that any Pulumi team member would ask you to share the code as well
f

flat-insurance-25294

01/14/2020, 6:59 PM
Don’t rely on Pulumi for destroying things. We don’t. Deletion of resources are done manually via aws console. We rely on proper tagging and discovery for searching which resources to remove for ephemeral stacks.
g

gentle-diamond-70147

01/14/2020, 7:18 PM
If Pulumi doesn't remove something properly during a
destroy
that's a bug and we would greatly appreciate a bug report with steps to reproduce!
@late-printer-99022 in some cases it's the EKS control plane that is creating AWS resources, based on the
k8s.core.v1.Service
resource that is defined. So it might be that EKS left the ALB resources behind unfortunately.
f

flat-insurance-25294

01/14/2020, 7:23 PM
That’s the issue of using outside stuff creating AWS resources. I wish we could set up the ALB ingress controller and configure it using Pulumi instead. It’s way more reliable.
l

late-printer-99022

01/15/2020, 7:46 AM
@gentle-diamond-70147 - I have not run
destroy
command. I simply remove code and did
pulumi up
and later added modified code.