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

curved-ghost-20494

11/08/2019, 1:29 PM
Does anyone know what the Pulumi vocab is for describing this? I've seen stack mentioned? I think I can just do it in JS, but then I wouldn't be able to access the exported stack outputs?
s

stocky-island-3676

11/08/2019, 1:50 PM
Hi @curved-ghost-20494. The usual way is to define your component inside a class inside
@mypnm/infra-templates
& then use it with
const siteA = new StaticSite()
. All info you want to access of it just need to be public member of that class. If that info is only available after application, set them as a
pulumi.Output<string>
,etc. Then you can
export outputName = pulumi.apply(v => v)
. There are neat helper functions. See https://www.pulumi.com/docs/intro/concepts/programming-model/#outputs
c

curved-ghost-20494

11/08/2019, 3:54 PM
Thanks Dominik!