pulumi / pulumi-digitalocean

A DigitalOcean Pulumi resource package, providing multi-language access to DigitalOcean
Apache License 2.0
83 stars 13 forks source link

Use a stronger type for DigitalOcean resource urns #523

Open kylepl opened 1 year ago

kylepl commented 1 year ago

Hello!

Issue details

As I recently ran into, there a urns returned for Pulumi use, and urns for Digital ocean use (see here). Fine, multiple user of urns.

My thought is what if we could add stronger typing then String, and could have a type like DOUrn, which the resources type could take.

It would require some changes for users upgrading to make it type-safe, though.

erwinssaget commented 3 months ago

I'd be willing to work on this. Currently running into this issue on my own project.