Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better handling of module data dependencies (#943)
* Drop of work on dealing with vars in params * Handling of module dependencies This changes module loading to happen in a loop with determination that a module load requires unresolved parameters. This prevents unresolvable data from slipping into module data and allows better handling of module dependencies. * Additional VBM test case * Debugging integration test * A little _less_ debugging data. ;-P * Additional comment (really, just to re-kick build)
- Loading branch information
Showing
9 changed files
with
267 additions
and
32 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
8 changes: 8 additions & 0 deletions
8
tests/terraform/parser/resources/parser_scenarios/module_output_reference/bucket/bucket.tf
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 @@ | ||
variable "tags" {} | ||
|
||
|
||
resource "aws_s3_bucket" "bucket" { | ||
bucket = "its.a.bucket" | ||
# NOTE: Prior to find_var_blocks handling vars in parameters, this didn't work | ||
tags = merge(var.tags, {"more_tags" = "yes"}) | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/terraform/parser/resources/parser_scenarios/module_output_reference/common/common.tf
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,6 @@ | ||
output "tags" { | ||
value = { | ||
Team = "my_team" | ||
Color = "red" | ||
} | ||
} |
Oops, something went wrong.