This message was deleted.
# automation-api
s
This message was deleted.
l
@big-state-95297 here is an example of an inline typescript automation program: https://github.com/pulumi/automation-api-examples/tree/main/nodejs/inlineProgram-tsnode In
index.ts
, starting line 15 is the function
pulumiProgram
creating the resources. Only within the body of this function you may use
const config = new pulumi.Config()
. This function is added to the Stack args on line 69. The args are then passed to the Pulumi Automation API on line 73. Additional stack config is added to it like on line 80. Does this help you?
On lines 95 and 96, you see how outputs are retrieved via the Automation API.
🙌 2
b
@limited-rainbow-51650: Thanks for the pointer. Looks like the way I had written my code would have executed the program code during stack initialization, which was causing this error.