Skip to content

Commit 76b94d5

Browse files
authored
Merge pull request #232 from tablexi/lp-update_clusterautoscaler_policy
UPDATE cluster autoscaler IAM policy
2 parents 607620c + 499d96c commit 76b94d5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

aws/eks/main.tf

+8-1
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ data "aws_iam_policy_document" "cluster-autoscaler-trust-relationship" {
266266
}
267267
}
268268

269+
# Recommended Policy
270+
# https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/aws/README.md#full-cluster-autoscaler-features-policy-recommended
269271
data "aws_iam_policy_document" "cluster-autoscaler" {
270272
version = "2012-10-17"
271273

@@ -274,10 +276,15 @@ data "aws_iam_policy_document" "cluster-autoscaler" {
274276
"autoscaling:DescribeAutoScalingGroups",
275277
"autoscaling:DescribeAutoScalingInstances",
276278
"autoscaling:DescribeLaunchConfigurations",
279+
"autoscaling:DescribeScalingActivities",
277280
"autoscaling:DescribeTags",
281+
"ec2:DescribeInstanceTypes",
282+
"ec2:DescribeLaunchTemplateVersions",
278283
"autoscaling:SetDesiredCapacity",
279284
"autoscaling:TerminateInstanceInAutoScalingGroup",
280-
"ec2:DescribeLaunchTemplateVersions",
285+
"ec2:DescribeImages",
286+
"ec2:GetInstanceTypesFromInstanceRequirements",
287+
"eks:DescribeNodegroup"
281288
]
282289
effect = "Allow"
283290
resources = ["*"]

0 commit comments

Comments
 (0)