File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,8 @@ data "aws_iam_policy_document" "cluster-autoscaler-trust-relationship" {
266
266
}
267
267
}
268
268
269
+ # Recommended Policy
270
+ # https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/aws/README.md#full-cluster-autoscaler-features-policy-recommended
269
271
data "aws_iam_policy_document" "cluster-autoscaler" {
270
272
version = " 2012-10-17"
271
273
@@ -274,10 +276,15 @@ data "aws_iam_policy_document" "cluster-autoscaler" {
274
276
" autoscaling:DescribeAutoScalingGroups" ,
275
277
" autoscaling:DescribeAutoScalingInstances" ,
276
278
" autoscaling:DescribeLaunchConfigurations" ,
279
+ " autoscaling:DescribeScalingActivities" ,
277
280
" autoscaling:DescribeTags" ,
281
+ " ec2:DescribeInstanceTypes" ,
282
+ " ec2:DescribeLaunchTemplateVersions" ,
278
283
" autoscaling:SetDesiredCapacity" ,
279
284
" autoscaling:TerminateInstanceInAutoScalingGroup" ,
280
- " ec2:DescribeLaunchTemplateVersions" ,
285
+ " ec2:DescribeImages" ,
286
+ " ec2:GetInstanceTypesFromInstanceRequirements" ,
287
+ " eks:DescribeNodegroup"
281
288
]
282
289
effect = " Allow"
283
290
resources = [" *" ]
You can’t perform that action at this time.
0 commit comments