hi somebody has some example in go how to create a...
# general
b
hi somebody has some example in go how to create and reference outputs between packages?
b
between packages? or stacks?
b
between packages
i want to consume the output as input and don’t break the dependency
for example the aks package want some id from the acr package
b
any output from one package is allowed as an input to another
if you pass an output from resource A to resource B Pulumi creates a dependency for you
you shouldn't have to think about it too much
b
yeah i’m used to terraform.. but it is possible to consume those outputs directly between packages right?
or should it go through your main entry point?
b
i'm having a hard time following here, when you say package you mean your own Go package you've defined? or the packages exposed as part of the provider?
b
a local package
custom
b
I'm still not following I'm afraid, sorry
b
so i have two different packages called acr.go and aks.go and they need stuff from eachother using outputs
but they still need to be implicitly linked
terraform uses modules.. and to exchange data between modules you have to reference it through main.tf where you can consume those outputs
b