Is there any good example of a monolith pulumi app? with files split into folders
w
witty-candle-66007
01/25/2021, 6:48 PM
Here’s an example with things broken out to separate files:
https://github.com/pulumi/examples/tree/master/gcp-py-network-component
the config.py is simply about pulling reused bits of code out of the main file.
The instance.py and network.py are examples of component resource definitions where you are able to create a reusable class that encapsulates, say, best practices around setting up a network.
👍 1
m
millions-toddler-84466
01/25/2021, 7:11 PM
I am trying to use create a PVC in a file and use the same in another file with folders for different environments. I think it's a bit easier with importing files/folders in Typescript and planning to us it