Does anyone know what the Pulumi vocab is for desc...
# general
c
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
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
Thanks Dominik!