From 97da4469f431a234107d4785490d15c814de9a2b Mon Sep 17 00:00:00 2001 From: gar Date: Tue, 21 Sep 2021 10:51:06 -0700 Subject: [PATCH] templating policy json --- terraform-modules/aws/helm/kubernetes-external-secrets/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform-modules/aws/helm/kubernetes-external-secrets/main.tf b/terraform-modules/aws/helm/kubernetes-external-secrets/main.tf index a3855547d..a13fd9e70 100644 --- a/terraform-modules/aws/helm/kubernetes-external-secrets/main.tf +++ b/terraform-modules/aws/helm/kubernetes-external-secrets/main.tf @@ -29,7 +29,7 @@ data "template_file" "iam_policy" { resource "aws_iam_policy" "cluster_autoscaler" { name_prefix = "${local.base_name}-${var.environment_name}" description = "${local.base_name} for ${var.environment_name}" - policy = file("${path.module}/${local.iam_policy_file}") + policy = data.template_file.iam_policy.rendered } #