fix: Revert removal of templates provider (#883)

Broke use case of passing in custom template content. Reverts most of the following PRs:
- #865
- #863 
- #854
This commit is contained in:
Daniel Piddock
2020-06-05 10:34:23 +02:00
committed by GitHub
parent 05cd78593a
commit 7de18cd9cd
13 changed files with 123 additions and 92 deletions

View File

@@ -170,7 +170,7 @@ resource "aws_launch_configuration" "workers" {
"key_name",
local.workers_group_defaults["key_name"],
)
user_data_base64 = base64encode(local.userdata[count.index])
user_data_base64 = base64encode(data.template_file.userdata.*.rendered[count.index])
ebs_optimized = lookup(
var.worker_groups[count.index],
"ebs_optimized",