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

faint-helicopter-36405

01/22/2020, 2:49 PM
Hi everyone, is there any way to use a file other than
__main__.py
with Pulumi for Python as the program entrypoint?
c

colossal-plastic-46140

01/22/2020, 2:53 PM
don’t think so, but you can change the location of the file in the Pulumi.yaml
f

future-barista-68134

01/22/2020, 4:55 PM
In Python, there should either be a 
__main__.py
 file or a file 
setup.py
 that defines the entry point.
https://www.pulumi.com/docs/intro/concepts/project/
f

faint-helicopter-36405

01/22/2020, 4:57 PM
Hi @future-barista-68134, thanks! I remember seeing this page but I could figure out exactly how the second way would work. How exactly would one define an entrypoint using a
setup.py
file?
f

future-barista-68134

01/22/2020, 5:03 PM
2 Views