witty-ice-69000
08/08/2020, 2:10 PMpulumi --cwd <some dir>
is supposed to work.
I wanted to do something like this:
project root
|_ __main__.py
|_ bootstrap
|_ __main__.py
|_ core_deployment.py
|_ __init__.py
The bootstrap package has it's own __main__
file to establish the basic user, group and role for deployments and a privileged user must initially run pulumi --cwd bootstrap up
. Then for all other deployments, provided bootstrap doesn't need to change, then "regular" users can run pulumi up
and because the root __main__
always includes the bootstrap deployment, the state for the stack is always aligned and works just fine provided the regular user doesn't need to destroy the bootstrap state, and then a privileged user is needed again.
BUT using --cwd
results in the root __main__
being called regardless (the bootstrap __main__
is ignored). Even using cd bootstrap; pulumi up
still results in root __main__
being called.
What am I missing here?