Join Slack
Powered by
This message was deleted.
# general
s
sparse-intern-71089
09/23/2021, 8:53 PM
This message was deleted.
b
billowy-army-68599
09/23/2021, 9:04 PM
you can't have it read all the files, but you can import from other files, and separate the resources into components. See here:
https://github.com/jaxxstorm/pulumi-nginx-demo/blob/main/nginx-ingress/app.py
and here:
https://github.com/jaxxstorm/pulumi-nginx-demo/blob/main/nginx-ingress/__main__.py#L45
billowy-army-68599
09/23/2021, 9:05 PM
the way terraform works sorta violates the "principal of least surprise" to me, executing random files you haven't explicitly imported
💡 1
billowy-army-68599
09/23/2021, 9:05 PM
you'll notice the import here:
https://github.com/jaxxstorm/pulumi-nginx-demo/blob/main/nginx-ingress/__main__.py#L8
b
billions-mechanic-26704
09/23/2021, 9:23 PM
@billowy-army-68599
thanks, it makes sense under modularity perspective.
4
Views
Open in Slack
Previous
Next