many-salesmen-89069
05/26/2021, 10:04 AMmy_dir/
Pulumi.yaml
setup.py // calls `setup(packages=find_packages())`
my_package/
__init__.py
__main__.py // does `from .pulumi import *`
pulumi.py // contains AWS resource created with Pulumi
Now when I run pulumi up
in my_dir
, I get the following error:
ImportError: can't find '__main__' module in '.'
Which tells me that Pulumi tries to import my_dir/__main__.py
and ignores setup.py
. How can I fix this? Is there any documentation that I’m missing?brave-planet-10645
05/26/2021, 10:11 AM__main__.py
is not in the root directory, there is a setting you can use in the Pulumi.yamlmain: my_dir
many-salesmen-89069
05/26/2021, 11:09 AMbrave-planet-10645
05/26/2021, 11:10 AM