sparse-intern-71089
05/15/2023, 2:05 PMclever-sunset-76585
05/15/2023, 4:02 PMprocess.env
yourself? I don't know if that would work though but worth a shot.rhythmic-sunset-53997
05/16/2023, 12:32 PMos.environ
when they are defined at the bash level (e.g. FOO=bar pulumi up
). It’s a little annoying because this way we have to ensure those are available in the environment of whoever is running the pulumi command.
The second suggestion, with consuming these from the stack config and then setting them as environment variables, does not work, sadly. I suspect this is due to the actual __main__.py
code running in a different process than the rest of the program? Whatever the cause, the provider can only see the environment variables it has set up itself.