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{
|
p.Statement = append(p.Statement, &Statement{
|
||||||
Sid: "kopsK8sEC2NodePerms",
|
Sid: "kopsK8sEC2NodePerms",
|
||||||
Effect: StatementEffectAllow,
|
Effect: StatementEffectAllow,
|
||||||
Action: stringorslice.Slice([]string{"ec2:DescribeInstances"}),
|
Action: stringorslice.Slice([]string{"ec2:DescribeInstances", "ec2:DescribeRegions"}),
|
||||||
Resource: resource,
|
Resource: resource,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
"Sid": "kopsK8sEC2NodePerms",
|
"Sid": "kopsK8sEC2NodePerms",
|
||||||
"Effect": "Allow",
|
"Effect": "Allow",
|
||||||
"Action": [
|
"Action": [
|
||||||
"ec2:DescribeInstances"
|
"ec2:DescribeInstances",
|
||||||
|
"ec2:DescribeRegions"
|
||||||
],
|
],
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
"Sid": "kopsK8sEC2NodePerms",
|
"Sid": "kopsK8sEC2NodePerms",
|
||||||
"Effect": "Allow",
|
"Effect": "Allow",
|
||||||
"Action": [
|
"Action": [
|
||||||
"ec2:DescribeInstances"
|
"ec2:DescribeInstances",
|
||||||
|
"ec2:DescribeRegions"
|
||||||
],
|
],
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
"Sid": "kopsK8sEC2NodePerms",
|
"Sid": "kopsK8sEC2NodePerms",
|
||||||
"Effect": "Allow",
|
"Effect": "Allow",
|
||||||
"Action": [
|
"Action": [
|
||||||
"ec2:DescribeInstances"
|
"ec2:DescribeInstances",
|
||||||
|
"ec2:DescribeRegions"
|
||||||
],
|
],
|
||||||
"Resource": [
|
"Resource": [
|
||||||
"*"
|
"*"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue