Skip to content

Commit 617ce04

Browse files
authoredJul 6, 2018
Merge pull request kubernetes#5416 from appvia/aws-ebs-allow-resize
Add IAM ec2:ModifyVolume permission to allow EBS volume resize
2 parents 88f1231 + 2f0fdbc commit 617ce04

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed
 

‎pkg/model/iam/iam_builder.go

+1
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,7 @@ func addMasterEC2Policies(p *Policy, resource stringorslice.StringOrSlice, legac
635635
"ec2:CreateTags", // aws.go, tag.go
636636
"ec2:CreateVolume", // aws.go
637637
"ec2:ModifyInstanceAttribute", // aws.go
638+
"ec2:ModifyVolume", // aws.go
638639
}),
639640
Resource: resource,
640641
},

‎pkg/model/iam/tests/iam_builder_master_strict.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"ec2:CreateSecurityGroup",
2222
"ec2:CreateTags",
2323
"ec2:CreateVolume",
24-
"ec2:ModifyInstanceAttribute"
24+
"ec2:ModifyInstanceAttribute",
25+
"ec2:ModifyVolume"
2526
],
2627
"Resource": [
2728
"*"

‎pkg/model/iam/tests/iam_builder_master_strict_ecr.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"ec2:CreateSecurityGroup",
2222
"ec2:CreateTags",
2323
"ec2:CreateVolume",
24-
"ec2:ModifyInstanceAttribute"
24+
"ec2:ModifyInstanceAttribute",
25+
"ec2:ModifyVolume"
2526
],
2627
"Resource": [
2728
"*"

0 commit comments

Comments
 (0)
Please sign in to comment.