Closed AlexTr closed 1 year ago
Configuration values aren't set sometimes using Pulumi API
Config values are always set using Pulumi API
Config values aren't set sometimes (actually very often) using Pulumi API
I use the following code to set config values via API:
const params = { "aws:region": "eu-central-1", "aws:accessKey": "***REDACTED***", "aws:secretKey": "***REDACTED***", } Object.entries(params).forEach(async ([key, value]) => { await stack.setConfig(key, { value }); });
but sometimes (actually very often) config values aren't set, as you can see only in 16th update all three values were set
Javascript, nodeJS v20.1.0
pulumi API, aws library
I've changed "forEach" to "for..of", it works for now, it maybe async call to set setting wasn't completed before calling next operation.
Configuration values aren't set sometimes using Pulumi API
Expected behavior
Config values are always set using Pulumi API
Current behavior
Config values aren't set sometimes (actually very often) using Pulumi API
Steps to reproduce
I use the following code to set config values via API:
but sometimes (actually very often) config values aren't set, as you can see only in 16th update all three values were set
Context (Environment)
Javascript, nodeJS v20.1.0
Affected feature
pulumi API, aws library