Hi folks! I have a bridged Pulumi provider, and I’...
# package-authoring
b
Hi folks! I have a bridged Pulumi provider, and I’m hitting an error when attempting to do a resource import through
pulumi import
. I tested the equivalent import through the bridged Terraform provider directly, and it worked without issue. This leads me to believe the error is originating in how the provider is bridged, but I’m not sure where to look to debug further:
Copy code
error: Preview failed: cannot encode resource inputs to call ValidateResourceConfig: objectEncoder failed on property "policy": objectEncoder failed on property "default_env": encMap failed on {[]}
Any tips for figuring this out? (I’ve confirmed that it does work if if I remove the
default_env
property from the cloud resource)
e
Hi Mike, this looks very interesting, and I'd love a bug report that my team can pick up to reproduce. We accept bugs in https://github.com/pulumi/pulumi-terraform-bridge/
On the surface this is about data failing to type-check, but it's difficult to say at a first glance without a repro. Thank you!