ROSAAmazonEBSCSIDriverOperatorPolicy

Last Modified

Aug 19, 2026

August 19, 2026 at 06:03 AM UTC

Version

v7

Total Versions

3

Created

Aug 19, 2026

Actions

44

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "ReadOnlyDescribeOperations",
          "Effect": "Allow",
          "Action": [
            "ec2:DescribeAvailabilityZones",
            "ec2:DescribeInstances",
            "ec2:DescribeInstanceTypes",
            "ec2:DescribeSnapshots",
            "ec2:DescribeTags",
            "ec2:DescribeVolumes",
            "ec2:DescribeVolumesModifications",
            "ec2:DescribeVolumeStatus"
          ],
          "Resource": "*"
        },
        {
          "Sid": "CreateAndCopyVolumesWithManagedTag",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateVolume",
            "ec2:CopyVolumes"
          ],
          "Resource": "arn:aws:ec2:*:*:volume/*",
          "Condition": {
            "StringEquals": {
              "aws:RequestTag/red-hat-managed": "true"
            }
          }
        },
        {
          "Sid": "CopyManagedVolumes",
          "Effect": "Allow",
          "Action": [
            "ec2:CopyVolumes"
          ],
          "Resource": "arn:aws:ec2:*:*:volume/vol-*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/red-hat-managed": "true"
            }
          }
        },
        {
          "Sid": "CopyUserBroughtVolumes",
          "Effect": "Allow",
          "Action": [
            "ec2:CopyVolumes"
          ],
          "Resource": "arn:aws:ec2:*:*:volume/vol-*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/red-hat": "true"
            }
          }
        },
        {
          "Sid": "CreateSnapshotsWithManagedTag",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateSnapshot"
          ],
          "Resource": "arn:aws:ec2:*:*:snapshot/*",
          "Condition": {
            "StringEquals": {
              "aws:RequestTag/red-hat-managed": "true"
            }
          }
        },
        {
          "Sid": "CreateSnapshotsFromManagedVolumes",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateSnapshot"
          ],
          "Resource": "arn:aws:ec2:*:*:volume/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/red-hat-managed": "true"
            }
          }
        },
        {
          "Sid": "CreateSnapshotsFromUserBroughtVolumes",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateSnapshot"
          ],
          "Resource": "arn:aws:ec2:*:*:volume/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/red-hat": "true"
            }
          }
        },
        {
          "Sid": "ManageManagedVolumes",
          "Effect": "Allow",
          "Action": [
            "ec2:ModifyVolume",
            "ec2:AttachVolume",
            "ec2:DetachVolume",
            "ec2:DeleteVolume"
          ],
          "Resource": "arn:aws:ec2:*:*:volume/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/red-hat-managed": "true"
            }
          }
        },
        {
          "Sid": "ManageUserBroughtVolumes",
          "Effect": "Allow",
          "Action": [
            "ec2:ModifyVolume",
            "ec2:AttachVolume",
            "ec2:DetachVolume",
            "ec2:DeleteVolume"
          ],
          "Resource": "arn:aws:ec2:*:*:volume/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/red-hat": "true"
            }
          }
        },
        {
          "Sid": "CreateVolumesFromAndEnableFSROnManagedSnapshots",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateVolume",
            "ec2:EnableFastSnapshotRestores"
          ],
          "Resource": "arn:aws:ec2:*:*:snapshot/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/red-hat-managed": "true"
            }
          }
        },
        {
          "Sid": "CreateVolumesFromAndEnableFSROnUserBroughtSnapshots",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateVolume",
            "ec2:EnableFastSnapshotRestores"
          ],
          "Resource": "arn:aws:ec2:*:*:snapshot/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/red-hat": "true"
            }
          }
        },
        {
          "Sid": "AttachDetachVolumesToManagedInstances",
          "Effect": "Allow",
          "Action": [
            "ec2:AttachVolume",
            "ec2:DetachVolume"
          ],
          "Resource": "arn:aws:ec2:*:*:instance/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/red-hat-managed": "true"
            }
          }
        },
        {
          "Sid": "DeleteAndLockManagedSnapshots",
          "Effect": "Allow",
          "Action": [
            "ec2:DeleteSnapshot",
            "ec2:LockSnapshot"
          ],
          "Resource": "arn:aws:ec2:*:*:snapshot/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/red-hat-managed": "true"
            }
          }
        },
        {
          "Sid": "DeleteAndLockUserBroughtSnapshots",
          "Effect": "Allow",
          "Action": [
            "ec2:DeleteSnapshot",
            "ec2:LockSnapshot"
          ],
          "Resource": "arn:aws:ec2:*:*:snapshot/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/red-hat": "true"
            }
          }
        },
        {
          "Sid": "TagResourcesOnCreation",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateTags"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:volume/*",
            "arn:aws:ec2:*:*:snapshot/*"
          ],
          "Condition": {
            "StringEquals": {
              "ec2:CreateAction": [
                "CreateVolume",
                "CreateSnapshot",
                "CopyVolumes"
              ]
            }
          }
        },
        {
          "Sid": "ModifyTagsOnManagedVolumes",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateTags",
            "ec2:DeleteTags"
          ],
          "Resource": "arn:aws:ec2:*:*:volume/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/red-hat-managed": "true"
            },
            "Null": {
              "aws:TagKeys": "false"
            },
            "ForAllValues:StringNotEquals": {
              "aws:TagKeys": [
                "red-hat-managed",
                "ebs.csi.aws.com/cluster",
                "kubernetes.io/created-for/pvc/name"
              ]
            }
          }
        },
        {
          "Sid": "ModifyTagsOnUserBroughtVolumes",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateTags",
            "ec2:DeleteTags"
          ],
          "Resource": "arn:aws:ec2:*:*:volume/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/red-hat": "true"
            },
            "Null": {
              "aws:TagKeys": "false"
            },
            "ForAllValues:StringNotEquals": {
              "aws:TagKeys": [
                "red-hat-managed",
                "red-hat",
                "ebs.csi.aws.com/cluster",
                "kubernetes.io/created-for/pvc/name"
              ]
            }
          }
        },
        {
          "Sid": "KMSEncryptedVolumes",
          "Effect": "Allow",
          "Action": [
            "kms:Decrypt",
            "kms:GenerateDataKeyWithoutPlaintext",
            "kms:ReEncryptFrom",
            "kms:ReEncryptTo"
          ],
          "Resource": "arn:aws:kms:*:*:key/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/red-hat": "true"
            },
            "StringLike": {
              "kms:ViaService": "ec2.*.amazonaws.com"
            },
            "Null": {
              "kms:EncryptionContextKeys": false
            },
            "ForAllValues:StringEquals": {
              "kms:EncryptionContextKeys": [
                "aws:ebs:id"
              ]
            }
          }
        },
        {
          "Sid": "KMSCreateGrant",
          "Effect": "Allow",
          "Action": [
            "kms:CreateGrant"
          ],
          "Resource": "arn:aws:kms:*:*:key/*",
          "Condition": {
            "Bool": {
              "kms:GrantIsForAWSResource": true
            },
            "StringLike": {
              "kms:ViaService": "ec2.*.amazonaws.com"
            },
            "StringEquals": {
              "kms:GrantConstraintType": "EncryptionContextSubset",
              "aws:ResourceTag/red-hat": "true"
            },
            "Null": {
              "kms:EncryptionContextKeys": false
            },
            "ForAllValues:StringEquals": {
              "kms:GrantOperations": [
                "Decrypt",
                "GenerateDataKeyWithoutPlaintext",
                "ReEncryptFrom",
                "ReEncryptTo"
              ],
              "kms:EncryptionContextKeys": [
                "aws:ebs:id"
              ]
            }
          }
        },
        {
          "Sid": "DescribeKMSKeysForEBSVolumeEncryption",
          "Effect": "Allow",
          "Action": "kms:DescribeKey",
          "Resource": "arn:aws:kms:*:*:key/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/red-hat": "true"
            },
            "StringLike": {
              "kms:ViaService": "ec2.*.amazonaws.com"
            }
          }
        }
      ]
    },
    "VersionId": "v7",
    "IsDefaultVersion": true,
    "CreateDate": "2026-08-19T05:07:11+00:00"
  }
}

Version History (8 recorded)

Raw history
v7updated

13 actions added

6c43c90
Permissions management: kms:CreateGrant: kms:CreateGrant
v6updated

scope changed, no action added or removed

753d4c7

ROSAAmazonEBSCSIDriverOperatorPolicy - Policy Version v6

No recorded action delta - this version predates the change index. View the raw diff.

Feb 12, 2026

53cee13

ROSAAmazonEBSCSIDriverOperatorPolicy - Policy Version v4

No recorded action delta - this version predates the change index. View the raw diff.

Feb 12, 2026

db1bcce

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Jan 22, 2025

55489ac

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 18, 2024

aafbae9

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

May 13, 2024

1b36617

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Apr 20, 2023

959d4b8