@@ -1069,28 +1069,29 @@ func AddAWSEBSCSIDriverPermissions(b *PolicyBuilder, p *Policy, appendSnapshotPe
10691069 addKMSIAMPolicies (p )
10701070
10711071 if appendSnapshotPermissions {
1072- addSnapshotPersmissions (b , p )
1072+ addSnapshotPermissions (b , p )
10731073 }
10741074
10751075 p .unconditionalAction .Insert (
1076- "ec2:DescribeAccountAttributes " , // aws.go
1076+ "ec2:DescribeAvailabilityZones " , // aws.go
10771077 "ec2:DescribeInstances" , // aws.go
1078+ "ec2:DescribeInstanceTypes" , // aws.go
1079+ "ec2:DescribeTags" , // aws.go
10781080 "ec2:DescribeVolumes" , // aws.go
10791081 "ec2:DescribeVolumesModifications" , // aws.go
1080- "ec2:DescribeTags" , // aws.go
1082+ "ec2:DescribeVolumeStatus" , // aws.go
10811083 )
10821084 p .clusterTaggedAction .Insert (
1083- "ec2:ModifyVolume" , // aws.go
1084- "ec2:ModifyInstanceAttribute" , // aws.go
1085- "ec2:AttachVolume" , // aws.go
1086- "ec2:DeleteVolume" , // aws.go
1087- "ec2:DetachVolume" , // aws.go
1085+ "ec2:AttachVolume" , // aws.go
1086+ "ec2:DeleteVolume" , // aws.go
1087+ "ec2:DetachVolume" , // aws.go
1088+ "ec2:ModifyVolume" , // aws.go
10881089 )
10891090
10901091 p .AddEC2CreateAction (
10911092 []string {
1093+ "CopyVolumes" ,
10921094 "CreateVolume" ,
1093- "CreateSnapshot" ,
10941095 },
10951096 []string {
10961097 "volume" ,
@@ -1099,14 +1100,25 @@ func AddAWSEBSCSIDriverPermissions(b *PolicyBuilder, p *Policy, appendSnapshotPe
10991100 )
11001101}
11011102
1102- func addSnapshotPersmissions (b * PolicyBuilder , p * Policy ) {
1103+ func addSnapshotPermissions (b * PolicyBuilder , p * Policy ) {
11031104 p .unconditionalAction .Insert (
11041105 "ec2:CreateSnapshot" ,
11051106 "ec2:DescribeAvailabilityZones" ,
11061107 "ec2:DescribeSnapshots" ,
11071108 )
11081109 p .clusterTaggedAction .Insert (
11091110 "ec2:DeleteSnapshot" ,
1111+ "ec2:EnableFastSnapshotRestores" ,
1112+ )
1113+
1114+ p .AddEC2CreateAction (
1115+ []string {
1116+ "CreateSnapshot" ,
1117+ },
1118+ []string {
1119+ "volume" ,
1120+ "snapshot" ,
1121+ },
11101122 )
11111123 p .Statement = append (p .Statement ,
11121124 & Statement {
0 commit comments