https://pulumi.com logo
#golang
Title
# golang
m

most-mouse-38002

08/22/2022, 1:42 PM
I have to admit the Go base of a stack gets super dirty and error prone once you start mixing existing resources with resources created by the stack. Is there any best practices here, since the data types for these different scenarios generally are incompatible with each other is feels more like hacking at this point than structurally typed infrastructure.
b

billowy-army-68599

08/22/2022, 4:07 PM
If you use the
get
functions this is pretty standard practice, are you using those?
m

most-mouse-38002

08/22/2022, 4:12 PM
I rewrote some of our code and that made more sense. I’m may simply be expecting it to be too close to rust or ts in terms of asynchronous stuff.
But Lookup makes sense some places, Get other places. I guess that’s my confusion regarding the different types.
b

billowy-army-68599

08/22/2022, 4:15 PM
I always use Lookup, very rarely Get
m

most-mouse-38002

08/22/2022, 4:18 PM
Then I’ll do the same! 😎
4 Views