Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug report] AttributeName("provider_settings"): invalid JSON error #501

Closed
runlevel5 opened this issue Mar 14, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@runlevel5
Copy link
Contributor

runlevel5 commented Mar 14, 2024

Describe the bug

Getting AttributeName("provider_settings"): invalid JSON error error

Impacted 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:

  1. Simply create a new pulumi stack then pulumi up
  2. See error

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

@runlevel5 runlevel5 added the bug Something isn't working label Mar 14, 2024
@mcncl
Copy link
Contributor

mcncl commented Mar 14, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants