Open t0yv0 opened 1 year ago
boolean properties might be also affected.
Very curious, this also affects TypeScript. Some fundamental limitation?
const gcpp = new gcp.Provider("gcpp", {
region: "pulumi-development",
batching: {
enableBatching: true,
sendAfter: "5s",
},
userProjectOverride: true,
});
I can access gcpp.region but not gcpp.batching and cpp.userProjectOverride though they all seem to be defined approx the same way in the TF provider.
Very curious, this also affects TypeScript. Some fundamental limitation?
Summarizing discussion from Slack: Providers didn't originally expose output properties in generated SDKs, although a change was made to expose output properties typed as string. Output properties of other types are not currently exposed. These others are JSON encoded, so would need to be deserialized.
Thanks @justinvp ! I've definitely worked around this limitation for my use case so this remains a nice-to-have. We could either deserialize JSON or (even better, but larger change) stop using nested JSON for transmitting provider configuration data. Thanks!
What happened?
When using explicit providers with YAML, I cannot extract nested properties from the explicit provider.
Expected Behavior
Nested properties work the same as top-level string properties.
Steps to reproduce
Notice how .project accessor succeeds but .batching does not. It seems to work for sending data to the provider but not getting it back.
Output of
pulumi about
Additional context
No response
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).