Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReservedIp and ReservedIpAssignment expect dropletId as a Input<number> but Droplet outputs ID as Output<string> #599

Closed
varunshoor opened this issue Jan 25, 2024 · 1 comment
Assignees
Labels
kind/bug Some behavior is incorrect or out of spec resolution/duplicate This issue is a duplicate of another issue

Comments

@varunshoor
Copy link

What happened?

The output of id in Droplet resource is of Output forcing the use of .apply to pass on the ID to ReservedIp or ReservedIpAssignment

Example

export const vpnDropletId = vpnDroplet.id.apply((id) => parseInt(id));

export const vpnReservedIp = new digitalocean.ReservedIp("vpnReservedIp", {
  dropletId: vpnDropletId,
  region: vpnDroplet.region,
});

Expected:

export const vpnReservedIp = new digitalocean.ReservedIp("vpnReservedIp", {
  dropletId: vpnDroplet.id,
  region: vpnDroplet.region,
});

Output of pulumi about

NA

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).

@varunshoor varunshoor added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Jan 25, 2024
@iwahbe iwahbe removed the needs-triage Needs attention from the triage team label Jan 25, 2024
@iwahbe
Copy link
Member

iwahbe commented Jan 25, 2024

Hi @varunshoor. This is a know issue with the provider, but fixing it is a breaking change. I have opened up #600 to track a fix.

@mjeffryes mjeffryes self-assigned this Sep 26, 2024
@mjeffryes mjeffryes added the resolution/duplicate This issue is a duplicate of another issue label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec resolution/duplicate This issue is a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants