This message was deleted.
# typescript
s
This message was deleted.
a
What you describe seems pretty feasible at first glance, but a bit of context would be helpful to better understand what your goals are. Also don’t forget there’s an #CRVK66N5U channel if you need specific guidance.
👍 1
l
It sounds like you want to catch an exception that would be thrown at deploy time. You can do this only if you have a Pulumi program specifically for this resource, which is probably not what you want. You Pulumi code does not deploy any resources: it builds the data that the Pulumi engine uses to deploy the resources. Exceptions thrown during deploy time would be caught by the engine, after your code has finished running. A better pattern for this might be to import the resource before running your program, so that your code is correct and does not have to know if the resource already exists.
👍 1