-
Notifications
You must be signed in to change notification settings - Fork 155
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
Provider property allowedAccountIDs
are interpreted as numbers in v6
#2806
Comments
This seems to be coming from our TFPF integration which is indeed new in v6: https://github.com/pulumi/pulumi-terraform-bridge/blob/master/pf/tfbridge/provider_checkconfig.go#L105 cc @t0yv0 as our TFPF master |
I didn't check explicitely, but a similar issue might exist for |
The following program is sufficient to reproduce the problem:
I got the same error message as reported. |
Is it literally 6YYYYYYYYYYY or some number like 601234567890? |
It's a number, yaml parses it as a number. The problem is that our SDKv2 based upstream would coerce the number to a string while the PF based upstream won't. |
This is necessary for backwards compatibility with SDKv{1,2} based provider. It is dangerous; there are many ways to represent bools and numbers so we are unable to round trip. This is the bridge side fix for pulumi/pulumi-aws#2806.
Thanks for that comment and just to make sure the coercion to string does not produce this: "5.30YYYYYYYYYe+11" right? But rather "0530YYYYYYYY"? |
Good catch. I tested that we coerce without error in AWS, but it turns out that AWS doesn't validate these numbers on preview. Fixed in pulumi/pulumi-terraform-bridge#1371. |
Fixes #2812 Fixes #2806 We could not use upgrade-provider for this operation because there was a conflict between upstream changes editing a go.sum and one of our patches doing the same, so the patch did not apply cleanly. Resolved manually by rebating upstream and rebuilding the patch set. The new upstream version targeted here is 5.17.0. On top of the upstream upgrade, this PR updates dependencies from pulumi-terraform-bridge to propagate bugfixes: - github.com/pulumi/pulumi-terraform-bridge/pf v0.16.1 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.60.0
This is necessary for backwards compatibility with SDKv{1,2} based provider. It is dangerous; there are many ways to represent bools and numbers so we are unable to round trip. This is the bridge side fix for pulumi/pulumi-aws#2806.
What happened?
Customer reported they have upgraded the provider to 6.0.x and we are seeing this error:
I wrapped this to multiple lines for readability and redacted the real account ID with
Y
characters.Expected Behavior
Same behaviour as in v5.
Steps to reproduce
Start with v5 and this as working stack config:
Upgrade the provider to v6 and the error appears.
Output of
pulumi about
Additional context
Workaround is to quote the values, so they are definitely interpreted as strings:
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: