bitter-chef-15418
11/19/2025, 11:24 PM*linode.Domain returned by the linode.NewDomain constructor should have a method, ID, which returns an integer of the provider ID for the resource:
dns/linode.go:46:16: cannot use _domain.ID() (value of struct type pulumi.IDOutput) as pulumi.IntInput value in struct literal: pulumi.IDOutput does not implement pulumi.IntInput (missing method ToIntOutput
as a workaround, i added some code that uses `Apply[T]`:
domainID := _domain.ID().ApplyT(func(id pulumi.ID) (int, error) {
i, err := strconv.Atoi(string(id))
if err != nil {
return 0, err
}
return i, nil
}).(pulumi.IntOutput)
is there a betterer way of doing this?echoing-dinner-19531
11/20/2025, 10:09 AMlate-library-81640
12/16/2025, 3:39 PM