Skip to content

Commit

Permalink
Merge pull request #232 from tablexi/lp-update_clusterautoscaler_policy
Browse files Browse the repository at this point in the history
UPDATE cluster autoscaler IAM policy
  • Loading branch information
phoolish authored Nov 7, 2023
2 parents 607620c + 499d96c commit 76b94d5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion aws/eks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ data "aws_iam_policy_document" "cluster-autoscaler-trust-relationship" {
}
}

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

Expand All @@ -274,10 +276,15 @@ data "aws_iam_policy_document" "cluster-autoscaler" {
"autoscaling:DescribeAutoScalingGroups",
"autoscaling:DescribeAutoScalingInstances",
"autoscaling:DescribeLaunchConfigurations",
"autoscaling:DescribeScalingActivities",
"autoscaling:DescribeTags",
"ec2:DescribeInstanceTypes",
"ec2:DescribeLaunchTemplateVersions",
"autoscaling:SetDesiredCapacity",
"autoscaling:TerminateInstanceInAutoScalingGroup",
"ec2:DescribeLaunchTemplateVersions",
"ec2:DescribeImages",
"ec2:GetInstanceTypesFromInstanceRequirements",
"eks:DescribeNodegroup"
]
effect = "Allow"
resources = ["*"]
Expand Down

0 comments on commit 76b94d5

Please sign in to comment.