sparse-intern-71089
11/04/2020, 6:15 PMhundreds-musician-51496
11/04/2020, 6:16 PMpackage.json
has the right pulumi packages I think:
"@pulumi/aws": "^3.0.0",
"@pulumi/awsx": "^0.22.0",
"@pulumi/pulumi": "^2.12.0",
hundreds-musician-51496
11/04/2020, 6:16 PMhundreds-musician-51496
11/04/2020, 6:20 PMconst authnOutput= new pulumi.StackReference(`...`).outputs
const args: InlineProgramArgs = {
...
program: async () => authnOutput.apply((authnOutput) => createDocumentSite(authnOutput.authNDomain, authnOutput.publicKey))
};
Where createDocumentSite
creates resources, but notice I'm using apply
to get stack output values ... Probably bad?fancy-jelly-61092
11/04/2020, 6:24 PMhundreds-musician-51496
11/04/2020, 6:46 PMconst args: InlineProgramArgs = {
...
program: async () => {
const authnOutput= new pulumi.StackReference(`...`).outputs
authnOutput.apply((authnOutput) => createDocumentSite(authnOutput.authNDomain, authnOutput.publicKey))
}
};
lemon-agent-27707
11/04/2020, 10:27 PMprogram
(inline function). This would include stack references. The error message could definitely be more clear here