I posted this in the dotnet channel but it's also a more general question that I think applies to pulumi as a whole:
https://pulumi-community.slack.com/archives/CQ2QFLNFL/p1756322646789759
The general version is: can you tie a resource and an immediate "get" on that resource together in such a way that the "get" isn't known (and thus isn't called) unless pulumi
knows that the resource definitely exists?
EDIT: This has been resolved, the issue was that the Endpoint itself was returning the wrong error code when the resource didn't exist. I was thrown off because the URL it was calling was identical to the GetSecret call I was attempting to (not) make.