https://pulumi.com logo
#python
Title
# python
w

worried-queen-62794

10/21/2020, 5:35 AM
I'm pretty new to Pulumi and Python. What is the best way to split a module up? If I define everything at the top level and import all the modules into the main module is that sufficient?
🙌 1
e

enough-oil-63049

10/22/2020, 11:14 PM
Hi Jason, I was in the same position at the start of this year. The approach I took initially was to develop in the main module and then refactor it. I ended up with a separate config.py module, a backend module where all the Pulumi Azure calls took place, and two modules based on https://www.pulumi.com/docs/intro/concepts/programming-model/#components