aztfexport icon indicating copy to clipboard operation
aztfexport copied to clipboard

[Feature Request] Show diff / changes of resources against existing state file

Open DanG-arch opened this issue 3 years ago • 3 comments

Would love to have a feature where I can provide an existing state file (and the aztfy mapping file) and then get a HCL output of differences between existing local state file and remote azure resources.

Ex:

aztfy -show-azure-changes -state-file .1.tfstate

DanG-arch avatar Sep 30 '22 11:09 DanG-arch

What is the difference between the proposal and terraform plan?

magodo avatar Oct 01 '22 00:10 magodo

I would like terrafy to append thh changes in azure into the exiting main.tf file. Essentially trying to see if I can get to a state where I can sync changes manually made in AZURE to match the code in the tf file.

DanG-arch avatar Oct 01 '22 11:10 DanG-arch

You don't have to append tf code into main.tf, but can be other file names as long as it resides in the same directory as main. --append does what you want.

magodo avatar Oct 02 '22 10:10 magodo

@DanG-arch Since we haven't get further response from you, I'll mark this issue as closed for now. Feel free to reopen it if the issue still remains.

magodo avatar May 24 '23 07:05 magodo