https://pulumi.com logo
#getting-started
Title
# getting-started
p

purple-electrician-80135

03/13/2023, 12:40 AM
I'm unable to access Config from within a Jupyter notebook cell .. is that a known problem or has anyone been able to do so? I can access from CLI just fine, but running in a cell the config values are never available. Selecting the stack programmatically and then calling stack.get_all_config() will return an empty dictionary.
e

echoing-dinner-19531

03/13/2023, 9:55 AM
I wonder if this is because the notebook changes the working directory of the process?
p

purple-electrician-80135

03/13/2023, 7:16 PM
I thought so as well, however I'm passing the current os working dir (which is where the pulumi yaml files are located)
e

echoing-dinner-19531

03/13/2023, 9:59 PM
Can you try doing a normal python subprocess call from within the notebook to something like
pulumi config list
and see if that finds the config ok?
p

purple-electrician-80135

03/14/2023, 8:44 PM
Yes, that works.
!pulumi config set ... !pulumi config get ...
returns the value expected (and writes to the yaml obv)
e

echoing-dinner-19531

03/14/2023, 9:18 PM
But automation doesn't how odd.... can you raise a bug at github.com/pulumi/pulumi about this. We can take a look, sounds like it might be something non-trival