1
0
mirror of https://github.com/terraform-aws-modules/terraform-aws-eks.git synced 2025-09-09 19:32:58 +08:00

Fix errors manifesting when used on an existing-cluster

This commit is contained in:
syst0m
2019-11-07 17:52:25 +00:00
parent a3009b1ecc
commit 880fd427a4
5 changed files with 10 additions and 7 deletions
+2 -1
View File
@@ -368,11 +368,12 @@ resource "aws_iam_policy" "worker_autoscaling" {
count = var.manage_worker_iam_resources && var.manage_worker_autoscaling_policy && var.enabled ? 1 : 0
name_prefix = "eks-worker-autoscaling-${aws_eks_cluster.this[count.index].name}"
description = "EKS worker node autoscaling policy for cluster ${aws_eks_cluster.this[count.index].name}"
policy = data.aws_iam_policy_document.worker_autoscaling.json
policy = data.aws_iam_policy_document.worker_autoscaling[0].json
path = var.iam_path
}
data "aws_iam_policy_document" "worker_autoscaling" {
count = var.manage_worker_iam_resources && var.manage_worker_autoscaling_policy && var.enabled ? 1 : 0
statement {
sid = "eksWorkerAutoscalingAll"
effect = "Allow"