mirror of https://github.com/kubernetes/kops.git
Add permission needed for service-linked role creation
Attempting to fix: - https://github.com/kubernetes/kops/issues/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 <ameukam@gmail.com>
This commit is contained in:
parent
0300a3b858
commit
ce340c6059
|
|
@ -831,6 +831,7 @@ func AddCCMPermissions(p *Policy, cloudRoutes bool) {
|
|||
"elasticloadbalancing:DescribeLoadBalancerPolicies",
|
||||
"elasticloadbalancing:DescribeTargetGroups",
|
||||
"elasticloadbalancing:DescribeTargetHealth",
|
||||
"iam:CreateServiceLinkedRole",
|
||||
"kms:DescribeKey",
|
||||
)
|
||||
|
||||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue