Skip to content

Does terramate do change detection in remote modules? #1266

Answered by mariux
Tomasz-Kluczkowski asked this question in Q&A
Discussion options

You must be logged in to vote

Actually the answer would be "No, terramate will not detect all stacks as changed always when updating the remote repository"; Terramate just considers it a change if you change the tag in a reference to a module. When the module on the remote side changes, terramate is not aware of this. In case you do not reference anything or use refs like main or latest, terramate will actually not detect any remote changes ever.

If you reference a Terraform Module with something like source = "github.com/org/repo?ref=v1.2" and change the ref to v1.3 then Terramate will notice the change in the change detection as the actual code changed. This is true for generated code or plain Terraform.

If you chan…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@mariux
Comment options

Answer selected by soerenmartius
@soerenmartius
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants