-
-
Notifications
You must be signed in to change notification settings - Fork 999
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introducing "copy_terraform_lock_file" to fine tune Lock File H…
…andling (#2889) * feat: introducing "copy_terraform_lock_file" to fine tune Lock File Handling Signed-off-by: Rodrigo Fior Kuntzer <[email protected]> * fix: renaming test name Signed-off-by: Rodrigo Fior Kuntzer <[email protected]> * fix: linting doc files Signed-off-by: Rodrigo Fior Kuntzer <[email protected]> * docs: applying suggestions Signed-off-by: Rodrigo Fior Kuntzer <[email protected]> * fix: adding comment about early return Signed-off-by: Rodrigo Fior Kuntzer <[email protected]> * fix: aligning code with the latest changes from main Signed-off-by: Rodrigo Fior Kuntzer <[email protected]> * test: fixing the TestRenderJsonMetadataTerraform test Signed-off-by: Rodrigo Fior Kuntzer <[email protected]> * docs: applying suggestions Signed-off-by: Rodrigo Fior Kuntzer <[email protected]> --------- Signed-off-by: Rodrigo Fior Kuntzer <[email protected]>
- Loading branch information
1 parent
70797fd
commit 6f5e448
Showing
16 changed files
with
220 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
test/fixtures/download/local-disable-copy-terraform-lock-file/terragrunt.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
inputs = { | ||
name = "World" | ||
} | ||
|
||
terraform { | ||
source = "../hello-world" | ||
copy_terraform_lock_file = false | ||
} |
7 changes: 7 additions & 0 deletions
7
test/fixtures/download/local-include-disable-copy-lock-file/module-a/terragrunt.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
inputs = { | ||
name = "Module A" | ||
} | ||
|
||
terraform { | ||
source = "../../hello-world" | ||
} |
14 changes: 14 additions & 0 deletions
14
test/fixtures/download/local-include-disable-copy-lock-file/module-b/terragrunt.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
inputs = { | ||
name = "Module B" | ||
} | ||
|
||
terraform { | ||
source = "../../hello-world" | ||
copy_terraform_lock_file = false | ||
} | ||
|
||
prevent_destroy = true | ||
|
||
include { | ||
path = find_in_parent_folders("terragrunt.hcl") | ||
} |
7 changes: 7 additions & 0 deletions
7
test/fixtures/download/local-include-disable-copy-lock-file/terragrunt.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
terraform { | ||
include_in_copy = ["**/.terraform-version"] | ||
} | ||
|
||
dependencies { | ||
paths = ["../module-a"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters