Closed VenelinMartinov closed 3 months ago
The issue happens here: https://github.com/pulumi/pulumi-terraform-bridge/blob/f6013b69e741bc73632fd42ba2b4630a1f2cc3ff/pkg/tfshim/sdk-v2/provider2.go#L280-L295
Looks like we try to coerce the GCP transport.Config value into a cty.Value and fail.
The GCP config is defined here: https://github.com/hashicorp/terraform-provider-google-beta/blob/99afea8acf81d576b882ec7b4418979139a00e1a/google-beta/transport/config.go#L161
I believe this bit is likely untested since AWS does not define a providerMeta at all.
PlanResourceChange does not seem to help with https://github.com/pulumi/pulumi-gcp/issues/1874 as detailed in https://github.com/pulumi/pulumi-gcp/issues/1874#issuecomment-2030188438 so I am going to let it be for now.
EDIT: Discovered this was false. PlanResourceChange change indeed fixes https://github.com/pulumi/pulumi-gcp/issues/1874, so I'm picking this back up.
What happened?
While working on https://github.com/pulumi/pulumi-gcp/issues/1874 I attempted to enroll the resource into PlanResourceChange in order to address the diff issue.
Diffing fails with the following error:
Example
Running
TestConnProfileUpgradePermaDiff
in https://github.com/pulumi/pulumi-gcp/pull/1890Output of
pulumi about
bridge commit 282c9dd7f749bba2987f8b5cbe8a72c5bab4c3ed gcp commit 768e01e
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).