pulumi / pulumi-terraform-provider

Use any Terraform provider with Pulumi
Apache License 2.0
6 stars 0 forks source link

Allow recording gRPC logs between the Pulumi and TF providers #37

Closed iwahbe closed 2 weeks ago

iwahbe commented 1 month ago

Hello!

Issue details

This would help us debug provider bugs when we are unable to reproduce the problem locally (say for lack of credentials or access to the underlying provider).

Users should be able to set a variable like:

$ PULUMI_DEBUG_TF_LOGS=tf_logs.json pulumi up

This would work similarly to PULUMI_DEBUG_LOGS=logs.json. If we had the TF schema, the Pulumi logs and TF logs, we could then correlate commands (Pulumi create -> TF create).

Affected area/feature

t0yv0 commented 1 month ago

It could be quite useful to emulate this for normal bridge even when not speaking TF protocol quite as yet.