-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added nb_instances to produce multiple names with index.
- Loading branch information
Yohan Belval
committed
Oct 30, 2019
1 parent
5c1a037
commit 9f4f054
Showing
3 changed files
with
21 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
output "result" { | ||
description = "The generated resource name." | ||
value = substr("${local.prefix}${local.separated_name}${local.suffix}", 0, var.max_length) | ||
value = local.results[0] | ||
} | ||
|
||
output "results" { | ||
description = "The generated resource names." | ||
value = local.results | ||
} |
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