Stack selection
imulup always runs Pulumi with an explicit --stack. The stack name comes from one of two places:
- With an
imulup.yaml, it’s each project’sstack:. - Without one, imulup finds the Pulumi project that a modified file belongs to, and plans every stack with a
Pulumi.<stack>.yamlfile next to itsPulumi.yaml. A project withPulumi.dev.yamlandPulumi.prod.yamlgets two plans,devandprod.
See Projects and stacks for how imulup matches modified files to projects.
Qualified stack names
Section titled “Qualified stack names”With Pulumi Cloud, an unqualified name such as dev uses the token’s default organization. To use another
organization, list the stack in imulup.yaml with its full name:
projects: - dir: network stack: my-org/devPulumi still reads Pulumi.dev.yaml for its config.
Stacks must exist
Section titled “Stacks must exist”pulumi preview fails if the stack doesn’t exist yet. Create stacks ahead of time with pulumi stack init. To have
imulup create them on first use, add a step to the plan workflow:
workflows: default: plan: steps: - run: pulumi stack select --create "$IMULUP_STACK" - previewEach project also needs workflow: default. A project without a workflow: uses the built-in workflow, which only
runs preview.
Refreshing
Section titled “Refreshing”imulup plan runs pulumi preview without refreshing, by default. To refresh state from the cloud first, pass the
flag through extra_args:
workflows: refresh: plan: steps: - preview: extra_args: ["--refresh"] apply: steps: - up: extra_args: ["--refresh"]