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

shy-author-33795

07/21/2021, 3:59 PM
I'm following this example of post-provisioning with a dynamic provider here. I have copied the
provisioners.py
file without revision and I'm importing it in my
__main__.py
with
import provisioners
. I am using a dynamic provider to remote exec into a server with network access to an aurora cluster to run a MySQL command,
show databases
. However, my program errors:
Copy code
└─ pulumi-python:dynamic:Resource  show-dbs                                      1 error

Diagnostics:
  pulumi-python:dynamic:Resource (show-dbs):
    error: Exception calling application: No module named 'provisioners'
I'm not sure what i'm doing wrong to make this module unavailable.
b

billowy-army-68599

07/21/2021, 4:46 PM
how is your code structured? same as the git repo?
s

shy-author-33795

07/21/2021, 5:13 PM
not quite. I have a separate directory containing several home-grown modules. in my pulumi program, I am calling two different modules, and one of those modules calls a few others including
provisioners.py
. Things have been working up until this point
b

billowy-army-68599

07/21/2021, 5:20 PM
hmm, are you able to share the repo?
s

shy-author-33795

07/21/2021, 5:24 PM
at the moment, no not publicly. that would take some effort and time to make publicly consumable
r

red-match-15116

07/21/2021, 6:13 PM
I wonder if you’re running into https://github.com/pulumi/pulumi/issues/7360
g

great-sunset-355

07/22/2021, 6:18 AM
That's very likely the issue, I plan to experiment on this today as well
3 Views