pulumi / pulumi-terraform-bridge

A library allowing Terraform providers to be bridged into Pulumi.
Apache License 2.0
198 stars 43 forks source link

Disentangle deciding DiffResponse from detailedDiff #2293

Closed t0yv0 closed 1 month ago

t0yv0 commented 2 months ago

This interaction between detailedDiff and DiffResponse needs to be removed:

https://github.com/pulumi/pulumi-terraform-bridge/blob/46d7e984a47432157ca5476a043269266a18015c/pkg/tfbridge/provider.go#L1122

Resolves: https://github.com/pulumi/pulumi-terraform-bridge/issues/1501

This will undo: https://github.com/pulumi/pulumi-terraform-bridge/pull/1502

Assumes PlanResourceChange is enabled for roll-out. This change should be flagged together with the other changes for the accurate preview work.

Undoing the change risks regressing two important customer-visible behaviors, epic will have tasks to follow up so we have solutions for these:

Out of scope:

VenelinMartinov commented 2 months ago

I've hit https://github.com/pulumi/pulumi-terraform-bridge/issues/1501 in pulumi-azure while rolling out PRC: https://github.com/pulumi/pulumi-azure/issues/2322#issuecomment-2297073944

One of the tests produces a diff due to https://github.com/pulumi/pulumi-terraform-bridge/blob/46d7e984a47432157ca5476a043269266a18015c/pkg/tfbridge/provider.go#L1122

The diff has no details and no explanation and should not be there as the stack has had no changes.

VenelinMartinov commented 1 month ago

fixed in https://github.com/pulumi/pulumi-terraform-bridge/pull/2379