proud-pizza-80589
11/06/2023, 3:55 PM<@UDNQQGNJF>/pulumi/cmd/dynamic-provider
. Weirdly enough this is backend dependent. Using cloud it works, but on an s3 backend it does not. Only difference between the code is adding this to the createOrSelectStack. Any idea's on the cause (or the solution obviously ;))
projectSettings: {
name: `bpaas`,
runtime: `nodejs`,
backend: {
url: `<s3://xxx-xxxx-xxxxx?region=eu-central-1>`,
},
},
limited-rainbow-51650
11/07/2023, 1:40 PMproud-pizza-80589
11/07/2023, 1:41 PMlimited-rainbow-51650
11/07/2023, 1:52 PMbackend
property that you remove from the projectSettings
?proud-pizza-80589
11/07/2023, 1:55 PMechoing-dinner-19531
11/07/2023, 2:05 PMproud-pizza-80589
11/07/2023, 2:11 PMtry {
currentStack = await LocalWorkspace.selectStack({
stackName,
workDir: this.isDevelopmentMode ? `/tmp/${process.env['NAMESPACE'] || process.env['USER']}` : '/data',
});
await currentStack.cancel();
} catch (error) {
// swallow the error: stack does not exist
}
const stack = await LocalWorkspace.createOrSelectStack(
{
stackName,
projectName: `bpaas`,
program: async () => {
return await pulumiProgram();
},
},
...
echoing-dinner-19531
11/07/2023, 2:14 PMproud-pizza-80589
11/07/2023, 2:15 PMechoing-dinner-19531
11/07/2023, 2:21 PMproud-pizza-80589
11/07/2023, 2:25 PM