From b0cf191e96fa332403109b57666504a8ed9a5e7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nick=20J=C3=BCttner?= Date: Wed, 8 Nov 2023 10:43:15 +0100 Subject: [PATCH] add IAM permissions for describing scaling activities --- CHANGELOG.md | 4 ++++ pkg/iam/control_plane_template.go | 1 + pkg/iam/nodes_template.go | 1 + 3 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9402b45..71d2366f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- Add addition IAM permission for cluster-autoscaler to describe scaling activities. + ## [0.12.0] - 2023-11-02 ### Added diff --git a/pkg/iam/control_plane_template.go b/pkg/iam/control_plane_template.go index 271f74ce..a50eff7e 100644 --- a/pkg/iam/control_plane_template.go +++ b/pkg/iam/control_plane_template.go @@ -28,6 +28,7 @@ const controlPlanePolicyTemplate = `{ "autoscaling:DescribeAutoScalingInstances", "autoscaling:DescribeTags", "autoscaling:DescribeLaunchConfigurations", + "autoscaling:DescribeScalingActivities", "ec2:DescribeLaunchTemplateVersions" ], "Resource": "*", diff --git a/pkg/iam/nodes_template.go b/pkg/iam/nodes_template.go index df849ba9..abe35438 100644 --- a/pkg/iam/nodes_template.go +++ b/pkg/iam/nodes_template.go @@ -19,6 +19,7 @@ const nodesTemplate = `{ "autoscaling:DescribeAutoScalingInstances", "autoscaling:DescribeTags", "autoscaling:DescribeLaunchConfigurations", + "autoscaling:DescribeScalingActivities", "ec2:DescribeLaunchTemplateVersions" ], "Resource": "*",