perfectsense / gyro

Gyro is a command-line tool for creating, updating, and maintaining cloud infrastructure. Gyro makes infrastructure-as-code possible.
https://gyro.dev
Apache License 2.0
134 stars 7 forks source link

Allow fields to be ignored from gyro diff #408

Open deepanjan90 opened 2 years ago

deepanjan90 commented 2 years ago

Is your feature request related to a problem? Please describe. A number of times there are fields (output) that change values based on resource updates which causes the state file to change. A common example would be a date field like updated-on that changes on every update of the resource. Not always are we interested in that change and would be nice to avoid state changes based on that.

Describe the solution you'd like An annotation baed approach where we can declaratively select fields to ignore so so that gyro does not pick up changes.