Hi! I accidentally used `$"zone.Id"` directly as a...
# dotnet
c
Hi! I accidentally used
$"zone.Id"
directly as a Cloudflare.Zone name, and now the name in pulumi is "Calling [ToString] on an [Output<T>] is not supported." I'm having issues recovering from that.
I probably want to edit my state directly, but I'm not sure how to do that.
Did a
pulumi export
and removed the faulty resource and then pulumi import 🚀
o
@clever-address-74879 excellent solution, another method of recovering would be to use the alias resource option (https://www.pulumi.com/docs/intro/concepts/resources/options/aliases/) to tell Pulumi that the resource changed name, this may have worked:
Copy code
var zone = new Zone("new-name-for-zone", /* args */,
    new CustomResourceOptions { Aliases = { new Alias { Name = "Calling [ToString] on an [Output<T>] is not supported."} } });
🙌 1