sparse-intern-71089
03/01/2022, 3:40 PMlittle-cartoon-10569
03/01/2022, 7:59 PMcfg
come from? If you call any Pulumi static method (e.g. getStack()) without having started the engine, you will see this error. Maybe you can change the order of imports? Or change cfg
from being created inside the imported module to being passed into it from the main program?little-cartoon-10569
03/01/2022, 8:00 PMconst cfg = new pulumi.Config();
in your module, that's definitely not going to work. Do that in you main program and pass it to the module.little-cartoon-10569
03/01/2022, 8:01 PMlittle-cartoon-10569
03/01/2022, 8:02 PMargs
and opts
constructor parameters.prehistoric-kite-30979
03/01/2022, 8:44 PMprehistoric-kite-30979
03/01/2022, 8:44 PMprehistoric-kite-30979
03/01/2022, 8:44 PMprehistoric-kite-30979
03/01/2022, 8:48 PMCoupling your module to the shape of your program’s config file is not a good idea and will bite you in the futureWe use it to override the default provider behavior and these are just helpers to build out the correct providers.
prehistoric-kite-30979
03/01/2022, 8:52 PMlittle-cartoon-10569
03/01/2022, 9:06 PMprehistoric-kite-30979
03/01/2022, 9:16 PM