blue-jelly-98553
11/05/2022, 5:02 PM__main__.py
definition into smaller, more manageable py files. For example, I'm specifying multiple AWS SES templates, where I'd like that IAC code to live in its own file. I looked through the docs, but it's not clear on how to achieve in a way similar to how terraform allows modules. A little bit like the example image...__main__.py
and then specify pulumi cli to look for a custom name?billowy-army-68599
11/05/2022, 5:46 PMblue-jelly-98553
11/05/2022, 5:49 PMbillowy-army-68599
11/05/2022, 7:19 PMmain.py
entrypointblue-jelly-98553
11/05/2022, 10:52 PM.tf
world where terraform will just automatically see anything with that extension. It's a mental model shift w pulumi, IAC py files and actual application code py files - where they can't be auto-detected.billowy-army-68599
11/05/2022, 10:59 PMblue-jelly-98553
11/05/2022, 11:08 PMses.py
file, exported the template()
function, imported into __main__.py
and works like a charm. Thanks for your help 👍billowy-army-68599
11/05/2022, 11:08 PMblue-jelly-98553
11/05/2022, 11:10 PM