Open dpullman opened 1 year ago
Thanks for letting me know David! When I published this course, the for
expression didn't yet exist, so template_file
was a possible workaround. If you don't mind, I'll borrow what you did and update the exercise files shortly.
You're welcome, and I was just repurposing something you had used before to get the exercise to work.
I am trying to work out a templatefile approach to these variables, just to keep the idea of the "template" example they were meant to show. But I need to learn how to do that, how to pass the right map in, that sort of thing. I'll update if I can figure that out. Thanks!
On at least Mac with M1 processor, starting in m5 (and then in m6 and further) the use of the template provider in the templates.tf file causes an init error:
I'm using a Macbook Pro:
The docs say to use templatefile, but not sure how to do that in the current module setup. I'm doing a workaround for now by renaming the templates.tf file to xxxtemplates.tfxxx (taking it out of the config, basically) and adding two lines to locals in resources.tf and changing two lines in the vpc module to use the two local vars: