diff --git a/main.tf b/main.tf index 285ca8e..cc80799 100644 --- a/main.tf +++ b/main.tf @@ -32,7 +32,7 @@ resource "aws_iam_role" "scheduled_task_cloudwatch" { data "template_file" "scheduled_task_cloudwatch_policy" { template = "${file("${path.module}/policies/scheduled-task-cloudwatch-policy.json")}" - vars { + vars = { task_execution_role_arn = "${aws_iam_role.scheduled_task_ecs_execution.arn}" } } diff --git a/variables.tf b/variables.tf index c6fcf42..3c0c9e7 100644 --- a/variables.tf +++ b/variables.tf @@ -5,7 +5,7 @@ variable "name" { variable "environment" { type = "string" - description = "Environment - appended to ${var.name} for resources" + description = "Environment - appended to var.name for resources" } variable "network_mode" {