hashicorp / terraform-json

Helper types for the Terraform external data representation
Mozilla Public License 2.0
157 stars 29 forks source link

Add PreviousAddress field to ResourceChange to support moved block #95

Closed takaishi closed 1 year ago

takaishi commented 1 year ago

This PR adds PreviousAddress field to support moved block.

https://github.com/hashicorp/terraform-json/issues/45

liamcervante commented 1 year ago

Hi @takaishi, apologies for the delay here. The change looks good to me, but I'd like to see at least one test added for this. Could you add some configuration into the testdata directory that includes a moved block and the sample output from:

Thanks!