-
Notifications
You must be signed in to change notification settings - Fork 43
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
ID attributes need to respect providers that expect numerical IDs #352
Comments
I'm getting the same issue with JavaScript as well. If I try this Is there a workaround available for Javascript? UPDATE: |
I'll add an update here that in general, the solution for now is to use |
// convert dropletId from pulumi.ID to pulumi.IntInput
dropletId := droplet.ID().ToStringOutput().ApplyT(func(id string) int {
var idInt int
idInt, err := strconv.Atoi(id)
if err != nil {
fmt.Println(err)
return idInt
}
return idInt
}).(pulumi.IntInput) |
Is this issue being worked on? While it can be solved when passing dropletId's on to other resources (like firewall) by using apply it causes problems when modifying a droplet causing a replace. One example would be to modify userData due to cloudinit changes but simply modifying any of the inputs for a droplet causes a panic. A temporary solution is to destroy the droplet using |
Unfortunately this does not work. Still hitting issues with UPDATE: Seems like pulumi/pulumi#4173 (comment) has a workaround via
|
@iglu-sebastian nah, it doesn't |
Based on:
The text was updated successfully, but these errors were encountered: