qn for folks using micro-stacks here: - do you use...
# python
r
qn for folks using micro-stacks here: • do you use one common venv? • do you check in your venv into source control?
b
no, just ensure before each stack
up
you do
pip install -r requirements.txt
r
thank you, @billowy-army-68599. I assume this is in reply to the second question? (“do you check in your venv into source control?“)
b
Yep sorry
f
I'm not sure if it's right but I have this in my
__main__.py
Copy code
"""Dynamic stack loader"""

import pulumi

name = pulumi.get_stack()

if name.startswith("common-"):
    import stacks.common
# environment-specific module, same for each environment
else:
    import stacks.environment
The environment stacks refer to one common environment (set in the config).
r
oh I’m referring to the virtualenv used by the Pulumi project, and not Python code