better-shampoo-48884
03/27/2021, 12:15 PMpulumi-cli
did not! WHY there's a difference between the two in this case, I have NO idea, the config is the same regardless. Deep in the code where I create storageAccounts, I had this:
} else if (!saConfiguration.common.hasOwnProperty("subnetReference")) {
Naturally, this is no good when .common
does not exist on saConfiguration
, as was the case with this stack. Pulumi-cli doesn't care apparently. However, changing it to this made everything work just fine:
} else if (!saConfiguration.common?.hasOwnProperty("subnetReference")) {
(adding a ?
to the .common). How the hell this relates to error code 4294967295 is still a mystery though. Anyway.. now I get to go thorugh a few thousand lines of code and try to see if I have any more of these potentially invalid references.. sigh..lemon-agent-27707
03/27/2021, 3:37 PMbetter-shampoo-48884
03/27/2021, 4:12 PM// end of ts-node <http://stack.info|stack.info>() - exactly the same as for tsc version.
'azure:storageAccount': {
value: '{"accounts":{"storage01":{"subnetReference":"sz4"}},"common":{"config":{"allowSharedKeyAccess":false}}}',
objectValue: [Object],
secret: false
},
'azure:subnets': {
value: '{"sz2":{"serviceEndpoints":[{"service":"Microsoft.Storage"}]}}',
objectValue: [Object],
secret: false
}
},
result: 'succeeded',
endTime: 2021-03-27T10:47:22.000Z,
resourceChanges: { delete: 11, same: 12 }
}
previewing stack
{ create: 1, delete: 1, same: 9, update: 2 }
[n10272-infratest-k8s] c:\<path>\baseline-infra (feature/pulumi-infratest -> origin) (baseline-infra)
λ pulumi preview --suppress-outputs
Previewing update (dev.infra.infratesting):
Type Name Plan
pulumi:pulumi:Stack baseline-infra-dev.infra.infratesting
Resources:
12 unchanged
lemon-agent-27707
03/28/2021, 4:51 PM