I usually avoid accessing the pulumi config from everywhere. I centralize config reading in the pulumi program and pass values to resources. So when I write tests on resources, I avoid that issue.
clever-painter-96148
01/10/2023, 5:27 PM
Alternatively, you may try to monkeypatch and mock the config object used in your Pulumi program.