Skip to content

Commit

Permalink
Add permission needed for service-linked role creation
Browse files Browse the repository at this point in the history
Attempting to fix:
  - kubernetes#16218

by adding the permission needed for the AWS CCM to create a service-linked role for the elastic lb service.

Signed-off-by: Arnaud Meukam <[email protected]>
  • Loading branch information
ameukam committed Jan 4, 2024
1 parent 0300a3b commit ce340c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/model/iam/iam_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,7 @@ func AddCCMPermissions(p *Policy, cloudRoutes bool) {
"elasticloadbalancing:DescribeLoadBalancerPolicies",
"elasticloadbalancing:DescribeTargetGroups",
"elasticloadbalancing:DescribeTargetHealth",
"iam:CreateServiceLinkedRole",
"kms:DescribeKey",
)

Expand Down Expand Up @@ -884,7 +885,7 @@ func AddCCMPermissions(p *Policy, cloudRoutes bool) {
}
}

// AddAWSLoadbalancerControllerPermissions adds the permissions needed for the AWS Load Balancer Controller to the givnen policy
// AddAWSLoadbalancerControllerPermissions adds the permissions needed for the AWS Load Balancer Controller to the given policy
func AddAWSLoadbalancerControllerPermissions(p *Policy, enableWAF, enableWAFv2, enableShield bool) {
p.unconditionalAction.Insert(
"cognito-idp:DescribeUserPoolClient",
Expand Down

0 comments on commit ce340c6

Please sign in to comment.