Closed runlevel5 closed 7 months ago
@runlevel5 thanks for the report and opening the issue. I don't see anything in recent (1.5.x) that would have caused this, so I'm taking a guess that the initial stack was actually created pre-v1.x.x. There is a note in the upgrading doc that mentions a change in the way provider_settings
is used.
The previous version (prior to v1) used an array of provider settings.
ProviderSettings []*providerSettingsModel `tfsdk:"provider_settings"`
Whereas the newer model is a pointer to an object/struct.
ProviderSettings *providerSettingsModel `tfsdk:"provider_settings"`
It is likely just a case of modifying your pipeline to use the new settings embedded block, rather than the previous config.
Describe the bug
Getting
AttributeName("provider_settings"): invalid JSON error
errorImpacted version: v1.5.1
To Reproduce
The error has popped up in pulumiverse/pulumi-buildkite when it bumps its dependency to v1.5.1
Steps to reproduce the behavior:
pulumi up
Expected behavior No error
Additional context
This issue only impacts upgrading stack that was created with pre-1.4.1 version to 1.5.x
Please my full error trace at https://gist.github.com/runlevel5/804c363fa0ca81a404d8bbb5a29d8bbd