Skip to content

Commit 578c833

Browse files
committed
Line highlights
1 parent 880589b commit 578c833

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dynamic-template-output/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ echo ${VAR_2}
2626

2727
Instead, you can use a [string template directive](https://www.terraform.io/docs/configuration/expressions.html#string-templates) in the template file, combined with a map input to the `templatefile()` function to DRY this out.
2828

29-
To see this in action, review [main.tf](./main.tf), and see how it passes the `ENV_VARS = {}` map into the function. The `for` directive inside of [user-data.sh.tmpl](./user-data.sh.tmpl) unwraps that map, renders each line into an `export`, and the resulting script sets all of variables in the shell.
29+
To see this in action, review [main.tf](./main.tf#L4-L7), and see how it passes the `ENV_VARS = {}` map into the function. The `for` directive inside of [user-data.sh.tmpl](./user-data.sh.tmpl#L3-L5) unwraps that map, renders each line into an `export`, and the resulting script sets all of variables in the shell.
3030

3131
## Using This Example
3232

0 commit comments

Comments
 (0)