mirror of https://github.com/kubernetes/kops.git
Fix ASG scaling by adding in ec2:DescribeRegions permission
This commit is contained in:
parent
752c7bd96d
commit
1dbd435019
|
|
@ -519,7 +519,7 @@ func addNodeEC2Policies(p *Policy, resource stringorslice.StringOrSlice) {
|
|||
p.Statement = append(p.Statement, &Statement{
|
||||
Sid: "kopsK8sEC2NodePerms",
|
||||
Effect: StatementEffectAllow,
|
||||
Action: stringorslice.Slice([]string{"ec2:DescribeInstances"}),
|
||||
Action: stringorslice.Slice([]string{"ec2:DescribeInstances", "ec2:DescribeRegions"}),
|
||||
Resource: resource,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@
|
|||
"Sid": "kopsK8sEC2NodePerms",
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"ec2:DescribeInstances"
|
||||
"ec2:DescribeInstances",
|
||||
"ec2:DescribeRegions"
|
||||
],
|
||||
"Resource": [
|
||||
"*"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@
|
|||
"Sid": "kopsK8sEC2NodePerms",
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"ec2:DescribeInstances"
|
||||
"ec2:DescribeInstances",
|
||||
"ec2:DescribeRegions"
|
||||
],
|
||||
"Resource": [
|
||||
"*"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@
|
|||
"Sid": "kopsK8sEC2NodePerms",
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"ec2:DescribeInstances"
|
||||
"ec2:DescribeInstances",
|
||||
"ec2:DescribeRegions"
|
||||
],
|
||||
"Resource": [
|
||||
"*"
|
||||
|
|
|
|||
Loading…
Reference in New Issue