Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to see diff between revisions #401

Open
nabokihms opened this issue Jul 19, 2023 · 0 comments
Open

Add the ability to see diff between revisions #401

nabokihms opened this issue Jul 19, 2023 · 0 comments

Comments

@nabokihms
Copy link
Contributor

Problem

The main idea is that it is sometimes required to see what changes between module runs. For example, resources were redeployed because a value was changed, and you want to know why exactly this happened.

Proposal

Add the command to see module revisions.

module revision # lists all revisions
module revision 513 --manifests # shows manifests of the particular revision
module revision 513 --values # shows values of the particular revision

With this, the following scenarios are possible:

  1. Compare the current render with the previous revision:
diff -u <(module render) <(module revision 513 --manifests)
  1. Compare two previous revisions:
diff -u <(module revision 513 --manifests) <(module revision 512 --manifests)
  1. Compare current values with the values from the previous revision:
diff -u <(module values) <(module revision 513 --values)
  1. Compare values from two previous revisions:
diff -u <(module revision 513 --values) <(module revision 512 --values)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant