Skip to content

Commit

Permalink
Issue 2171 testing
Browse files Browse the repository at this point in the history
  • Loading branch information
denis256 committed Jun 29, 2022
1 parent 7a6cb23 commit dac416f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 7 deletions.
10 changes: 10 additions & 0 deletions issue-2171/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# issue 2171 testing

```
terragrunt init --terragrunt-working-dir ./app/mod1
# update modules/mod1 / modules/mod2
```

## References

https://github.com/gruntwork-io/terragrunt/issues/2171
9 changes: 8 additions & 1 deletion issue-2171/app/mod1/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,11 @@ include {

terraform {
source = "../../modules//mod1"
}
}

dependency "mod2" {
config_path = "../../modules/mod2"
mock_outputs = {
qwe = "1123"
}
}
7 changes: 1 addition & 6 deletions issue-2171/modules/mod1/main.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
resource "local_file" "mod1" {
content = "mod1 file"
filename = "${path.module}/mod1.txt"
}

resource "local_file" "mod2" {
content = "mod2 file"
content = "mod1 file test2"
filename = "${path.module}/mod1.txt"
}

4 changes: 4 additions & 0 deletions issue-2171/modules/mod2/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
terraform {
source = "git::[email protected]:denis256/terraform-test-module.git//modules/test-file?ref=v0.0.4"
//source = "git::[email protected]:denis256/terraform-test-module.git//modules/test-file?ref=v0.0.1"
}

0 comments on commit dac416f

Please sign in to comment.