From 2a2a174317707169f0cf05b81f4a87a92401f854 Mon Sep 17 00:00:00 2001 From: Gonzalo Ulla Date: Thu, 4 Nov 2021 11:46:17 -0300 Subject: [PATCH] Fix AWS autoscaler IAM policy to match tags (#108) --- modules/aws_autoscaling/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/aws_autoscaling/main.tf b/modules/aws_autoscaling/main.tf index be18d4e5..62c5999f 100644 --- a/modules/aws_autoscaling/main.tf +++ b/modules/aws_autoscaling/main.tf @@ -28,7 +28,7 @@ data "aws_iam_policy_document" "worker_autoscaling" { condition { test = "StringEquals" - variable = "autoscaling:ResourceTag/kubernetes.io/cluster/${var.cluster_name}" + variable = "autoscaling:ResourceTag/k8s.io/cluster-autoscaler/${var.cluster_name}" values = ["owned"] }