Dynamically create variables in template files based on list – Amazon Web Sevices
I have a task definition json file which is created via a templatefile. Something like the below: data "template_file" "task_definition" { templatefile = file("${path.module}/templates/task-definition.json") vars { environment = var.environment } Within the json file (aka the task definition), I have…