https://pulumi.com logo
#general
Title
# general
c

cool-computer-40158

05/24/2022, 10:18 AM
Hello together, https://www.pulumi.com/registry/packages/digitalocean/api-docs/app/ iam tryring to use the "Look up an Existing App Resource" to check my deployed digital ocean app for updates. My Problem is that i have the ID as string and do not know how to use it as the IDInput Datatype. I am using Go as language. Any ideas ? Thanks :)
e

echoing-dinner-19531

05/24/2022, 10:28 AM
I think you just need to cast to the
ID
type which is an alias for string.
c

cool-computer-40158

05/24/2022, 12:16 PM
thank you very much - i will try 🙂
but not sure how to cast it ? do you have an example for me 🙂
e

echoing-dinner-19531

05/24/2022, 12:21 PM
pulumi.ID("string")
<- just like casting between other types
c

cool-computer-40158

05/24/2022, 12:23 PM
i am stupid 😄 thank you very very much
e

echoing-dinner-19531

05/24/2022, 12:24 PM
🙂 n/p
3 Views