millions-ability-32682
07/14/2021, 6:52 AM$ tree -I node_modules $(pwd)
/workspaces/tmnf-do
├── package.json
├── package-lock.json
├── Pulumi.tmnf-server.yaml
├── Pulumi.vm.yaml
├── Pulumi.yaml
├── stacks
│ ├── tmnf-server
│ │ └── index.ts
│ └── vm
│ ├── index.ts
│ └── userdata.sh
└── tsconfig.json
Then I changed the main
setting of the two stacks to point to the stack directory:
$ tail -n +1 Pulumi.*.yaml
==> Pulumi.tmnf-server.yaml <==
main: stacks/tmnf-server
==> Pulumi.vm.yaml <==
main: stacks/vm
config:
digitalocean:token:
secure: [redacted]
But when I run pulumi up --stack vm
I get the following warning:
Diagnostics:
pulumi:pulumi:Stack (tmnf-do-vm):
We failed to locate the entry point for your program: /workspaces/tmnf-do
Here's what we think went wrong:
* Your program's 'main' file (/workspaces/tmnf-do/index.js) does not exist.
Which leads me to think that pulumi is still looking for the program in the project directory, disregarding the main
setting from stack config files. My question is: should a setup like this be possible, and should it even be possible to override main
per stack like I am trying to do?witty-candle-66007
07/14/2021, 1:09 PM--config-file
parameter.
So, you can run pulumi up --stack vm --config-file ./../Pulumi.vm.yaml
FROM the stacks/vm folder.millions-ability-32682
07/14/2021, 4:09 PMwitty-candle-66007
07/14/2021, 4:34 PMmillions-ability-32682
07/14/2021, 7:39 PMwitty-candle-66007
07/14/2021, 7:49 PMmillions-ability-32682
07/14/2021, 9:10 PM