@@ -368,142 +368,6 @@ func appMeshStatements(appendAction string) []cft.MapOfInterfaces {
368368 }
369369}
370370
371- func ebsStatements () []cft.MapOfInterfaces {
372- return []cft.MapOfInterfaces {
373- {
374- "Effect" : "Allow" ,
375- "Action" : []string {
376- "ec2:CreateSnapshot" ,
377- "ec2:AttachVolume" ,
378- "ec2:DetachVolume" ,
379- "ec2:ModifyVolume" ,
380- "ec2:DescribeAvailabilityZones" ,
381- "ec2:DescribeInstances" ,
382- "ec2:DescribeSnapshots" ,
383- "ec2:DescribeTags" ,
384- "ec2:DescribeVolumes" ,
385- "ec2:DescribeVolumesModifications" ,
386- },
387- "Resource" : "*" ,
388- },
389- {
390- "Effect" : "Allow" ,
391- "Action" : []string {
392- "ec2:CreateTags" ,
393- },
394- "Resource" : []* gfnt.Value {
395- addARNPartitionPrefix ("ec2:*:*:volume/*" ),
396- addARNPartitionPrefix ("ec2:*:*:snapshot/*" ),
397- },
398- "Condition" : cft.MapOfInterfaces {
399- "StringEquals" : cft.MapOfInterfaces {
400- "ec2:CreateAction" : []string {
401- "CreateVolume" ,
402- "CreateSnapshot" ,
403- },
404- },
405- },
406- },
407- {
408- "Effect" : "Allow" ,
409- "Action" : []string {
410- "ec2:DeleteTags" ,
411- },
412- "Resource" : []* gfnt.Value {
413- addARNPartitionPrefix ("ec2:*:*:volume/*" ),
414- addARNPartitionPrefix ("ec2:*:*:snapshot/*" ),
415- },
416- },
417- {
418- "Effect" : "Allow" ,
419-
420- "Action" : []string {
421-
422- "ec2:CreateVolume" ,
423- },
424- "Resource" : "*" ,
425- "Condition" : cft.MapOfInterfaces {
426- "StringLike" : cft.MapOfInterfaces {
427- "aws:RequestTag/ebs.csi.aws.com/cluster" : "true" ,
428- },
429- },
430- },
431- {
432- "Effect" : "Allow" ,
433- "Action" : []string {
434- "ec2:CreateVolume" ,
435- },
436- "Resource" : "*" ,
437- "Condition" : cft.MapOfInterfaces {
438- "StringLike" : cft.MapOfInterfaces {
439- "aws:RequestTag/CSIVolumeName" : "*" ,
440- },
441- },
442- },
443- {
444- "Effect" : "Allow" ,
445- "Action" : []string {
446- "ec2:DeleteVolume" ,
447- },
448- "Resource" : "*" ,
449- "Condition" : cft.MapOfInterfaces {
450- "StringLike" : cft.MapOfInterfaces {
451- "ec2:ResourceTag/ebs.csi.aws.com/cluster" : "true" ,
452- },
453- },
454- },
455- {
456- "Effect" : "Allow" ,
457-
458- "Action" : []string {
459- "ec2:DeleteVolume" ,
460- },
461- "Resource" : "*" ,
462- "Condition" : cft.MapOfInterfaces {
463- "StringLike" : cft.MapOfInterfaces {
464- "ec2:ResourceTag/CSIVolumeName" : "*" ,
465- },
466- },
467- },
468- {
469- "Effect" : "Allow" ,
470- "Action" : []string {
471- "ec2:DeleteVolume" ,
472- },
473- "Resource" : "*" ,
474- "Condition" : cft.MapOfInterfaces {
475- "StringLike" : cft.MapOfInterfaces {
476- "ec2:ResourceTag/kubernetes.io/created-for/pvc/name" : "*" ,
477- },
478- },
479- },
480- {
481- "Effect" : "Allow" ,
482- "Action" : []string {
483- "ec2:DeleteSnapshot" ,
484- },
485- "Resource" : "*" ,
486- "Condition" : cft.MapOfInterfaces {
487- "StringLike" : cft.MapOfInterfaces {
488- "ec2:ResourceTag/CSIVolumeSnapshotName" : "*" ,
489- },
490- },
491- },
492- {
493- "Effect" : "Allow" ,
494- "Action" : []string {
495- "ec2:DeleteSnapshot" ,
496- },
497- "Resource" : "*" ,
498- "Condition" : cft.MapOfInterfaces {
499- "StringLike" : cft.MapOfInterfaces {
500- "ec2:ResourceTag/ebs.csi.aws.com/cluster" : "true" ,
501- },
502- },
503- },
504- }
505- }
506-
507371func serviceLinkRoleStatements () []cft.MapOfInterfaces {
508372 return []cft.MapOfInterfaces {
509373 {
0 commit comments