AmazonEKSBlockStoragePolicyV2

Last Modified

May 11, 2026

May 11, 2026 at 05:03 PM UTC

Version

v1

Total Versions

1

Created

May 11, 2026

Actions

9

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Effect": "Allow",
          "Action": [
            "ec2:AttachVolume",
            "ec2:DetachVolume",
            "ec2:ModifyVolume",
            "ec2:EnableFastSnapshotRestores"
          ],
          "Resource": "*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/eks:eks-cluster-name": "${aws:PrincipalTag/eks:eks-cluster-name}"
            }
          }
        },
        {
          "Effect": "Allow",
          "Action": "ec2:CreateTags",
          "Resource": "*",
          "Condition": {
            "StringEquals": {
              "ec2:CreateAction": [
                "CreateVolume",
                "CreateSnapshot"
              ]
            }
          }
        },
        {
          "Effect": "Allow",
          "Action": [
            "ec2:CreateVolume"
          ],
          "Resource": "arn:aws:ec2:*:*:volume/*",
          "Condition": {
            "StringEquals": {
              "aws:RequestTag/eks:eks-cluster-name": "${aws:PrincipalTag/eks:eks-cluster-name}"
            },
            "ForAllValues:StringLike": {
              "aws:TagKeys": [
                "eks:eks-cluster-name",
                "CSIVolumeName",
                "ebs.csi.eks.amazonaws.com/cluster",
                "kubernetes.io/cluster/*",
                "kubernetes.io/created-for/*",
                "Name",
                "KubernetesCluster"
              ]
            }
          }
        },
        {
          "Effect": "Allow",
          "Action": [
            "ec2:CreateVolume"
          ],
          "Resource": "arn:aws:ec2:*:*:snapshot/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/eks:eks-cluster-name": "${aws:PrincipalTag/eks:eks-cluster-name}"
            }
          }
        },
        {
          "Effect": "Allow",
          "Action": [
            "ec2:CreateSnapshot"
          ],
          "Resource": "arn:aws:ec2:*:*:volume/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/eks:eks-cluster-name": "${aws:PrincipalTag/eks:eks-cluster-name}"
            }
          }
        },
        {
          "Effect": "Allow",
          "Action": [
            "ec2:CreateSnapshot"
          ],
          "Resource": "arn:aws:ec2:*:*:snapshot/*",
          "Condition": {
            "StringEquals": {
              "aws:RequestTag/eks:eks-cluster-name": "${aws:PrincipalTag/eks:eks-cluster-name}"
            },
            "ForAllValues:StringLike": {
              "aws:TagKeys": [
                "eks:eks-cluster-name",
                "CSIVolumeSnapshotName",
                "ebs.csi.eks.amazonaws.com/cluster",
                "kubernetes.io/cluster/*",
                "Name"
              ]
            }
          }
        }
      ]
    },
    "VersionId": "v1",
    "IsDefaultVersion": true,
    "CreateDate": "2026-05-11T16:27:15+00:00"
  }
}

Version History (1 recorded)

Raw history
v1new policy

7 actions added

3adc47e