Skip to content

Commit

Permalink
Fix AWS autoscaler IAM policy to match tags (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
GonzaloUlla authored Nov 4, 2021
1 parent d513e48 commit 2a2a174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/aws_autoscaling/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}

Expand Down

0 comments on commit 2a2a174

Please sign in to comment.