pulumi / pulumi-digitalocean

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

Type mismatch for `DropletId` when creating a new reserved IP #849

Open nmathew98 opened 6 days ago

nmathew98 commented 6 days ago

Describe what happened

NewReservedIp accepts ReservedIpArgs which has a field DropletId of type pulumi.IntPtrInput but when creating a NewDroplet the ID available is of type pulumi.IDOutput

NewDroplet Image

ReservedIpArgs Image

Sample program

main.go.txt

Log output

pulumi.log

Affected Resource(s)

Output of pulumi about

CLI
Version 3.129.0 Go Version go1.22.6 Go Compiler gc

Plugins KIND NAME VERSION resource cloudflare 5.41.0 resource digitalocean 4.34.0 language go unknown

Host
OS alpine Version 3.20.2 Arch aarch64

This project is written in go: executable='/usr/local/go/bin/go' version='go version go1.23.0 linux/arm64'

Current Stack: skulpture/brittle-systems/statamic

Found no resources associated with statamic

Found no pending operations associated with statamic

Backend
Name pulumi.com URL https://app.pulumi.com/skulpture User skulpture Organizations skulpture Token type personal

Dependencies: NAME VERSION github.com/dogmatiq/ferrite v1.4.0 github.com/pulumi/pulumi-cloudflare/sdk/v5 v5.41.0 github.com/pulumi/pulumi-digitalocean/sdk/v4 v4.34.0 github.com/pulumi/pulumi/sdk/v3 v3.136.1

Pulumi locates its logs in /tmp by default

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

nmathew98 commented 1 day ago

for reference, solved by:

Image

its a little awkward and docs don't specify this either, https://www.pulumi.com/registry/packages/digitalocean/api-docs/reservedip/:

Image