This message was deleted.
# typescript
s
This message was deleted.
b
what error are you getting?
d
deleting Target Group: ResourceInUse: Target group ‘arnawselasticloadbalancingus east 1UUID:targetgroup/RESOURCENAME/UUID’ is currently in use by a listener or a rule
b
do you have code to repro?
d
Sure. What’s the best way to share? Enormous copy/paste or a gist or something?
b
gist would be awesome
d
Let me get the relevant portion…
b
this is happening because you’re setting the name explicitly:
Copy code
name: targetGroupName
I’d recommend removing the explicit name and using autonaming. If you don’t want to do that, set the resource property `DeleteBeforeReplace`: https://www.pulumi.com/docs/intro/concepts/resources/options/deletebeforereplace/
d
I do specifically want to change its name.
I’ll try deleteBeforeReplace although that seems counterintuitive to me.
Same error. Target group is currently in. use by a listener or rule.
Which it is, of course, but replacing it should remove it from the listener I would think.
Appears that this is an existing issue: https://github.com/pulumi/pulumi/issues/5900
Since 2020 😬