Open iwahbe opened 10 months ago
If you feel that this issue is sufficiently painful to motivate a major version bump all on it's own, please 👍 this comment.
If you feel that this issue should not motivate a major version bump, please 👎 this comment.
@iwahbe can we update the docs
@nmathew98 Which docs?
like here for golang: https://www.pulumi.com/registry/packages/digitalocean/api-docs/reservedip/
and I think the rest are also referencing ID
directly when it should be cast, like: https://www.pulumi.com/registry/packages/digitalocean/api-docs/floatingip/
Those examples are generated, but I opened an issue in our code generator to track a fix. Thanks for pointing it out!
The upstream provider models
id
anddropletId
as an integer. Pulumi always modelsid
as a string, which works well for most providers... but not this one. For the next major version release of this provider, we should switch over to modelingdropletId
as a string, allowing the convenient passing of a droplet'sid
field to a input that accepts adropletId
.The current workaround is to parse the
id
field before passing it intodropletId
:This will fix: