EKS PVC Stuck Pending? Install the Amazon EBS CSI Driver Add-on: IAM Policy, Pod Identity or IRSA, gp3 StorageClass, Terraform and Every Error

Logeshwaran
—

If a PersistentVolumeClaim stays Pending on Amazon EKS with "waiting for a volume to be created, either by external provisioner ebs.csi.aws.com...", the Amazon EBS CSI driver is missing or cannot call EC2. Since Kubernetes 1.23, EKS no longer creates EBS volumes without it, so every cluster that uses EBS-backed storage needs the aws-ebs-csi-driver add-on installed and an IAM role with the AWS managed policy AmazonEBSCSIDriverPolicy, linked to the ebs-csi-controller-sa service account in kube-system through EKS Pod Identity or IRSA. Then create a gp3 StorageClass with provisioner: ebs.csi.aws.com and volumeBindingMode: WaitForFirstConsumer. Other common failures: UnauthorizedOperation in the controller logs (the IAM role is missing), "volume node affinity conflict" or "Multi-Attach error" (EBS volumes live in one Availability Zone and attach to one node), KMS-encrypted volumes without key permissions, and Fargate pods, which cannot use EBS at all. Below: install with the console, eksctl, the CLI and Terraform, the StorageClass, every error and its fix, resizing, snapshots and versions.

The shop moved its ticketing database to Kubernetes on EKS for a test, using a Helm chart that "just works" on other clusters. On this one, the database pod sat in Pending for an hour, and its volume claim said it was waiting for a volume to be created. Ethan had created the cluster with the console and assumed storage came with it. It did not: on EKS, the piece that creates EBS disks for Kubernetes is an add-on you install yourself, and it needs its own permission to create volumes.

⚡ Quick Answer

• Install: the aws-ebs-csi-driver EKS add-on with an IAM role. Steps.

• Permissions: AmazonEBSCSIDriverPolicy on a role for ebs-csi-controller-sa. Pod Identity or IRSA.

• StorageClass: gp3, ebs.csi.aws.com, WaitForFirstConsumer. YAML.

• Still Pending? Read the controller logs and PVC events. Every error.

What it is · Terraform · Zones and Multi-Attach · Resize · Snapshots.

New to EKS or EBS? The cards below explain both in plain English, plus the EBS and pod problems this one often sits next to.

🧭 NEW HERE? READ THESE FIRST

New to EKS or EBS storage? These five pages give you the background this one builds on:

📌 Bookmark this; the StorageClass and the error table are the parts you will come back for.

What the EBS CSI driver does, and why EKS needs it

Kubernetes keeps your storage requests separate from the storage itself. Your pod asks for a disk through a PersistentVolumeClaim (PVC); a StorageClass you define says what kind of disk to create; and a CSI driver (Container Storage Interface) is the plugin that actually talks to the cloud and creates, attaches and deletes the disks. On AWS, the Amazon EBS CSI driver turns each PVC into an EBS volume and attaches it to the node where the pod runs.

Older Kubernetes versions had EBS support built in ("in-tree"). Since Kubernetes 1.23 on EKS, that built-in code hands everything to the CSI driver, so without the driver installed, nothing creates the volumes, even for StorageClasses that still name the old kubernetes.io/aws-ebs provisioner. That is why a chart that worked years ago now leaves its PVC Pending.

The driver runs as two parts: a controller (a Deployment in kube-system) that calls the EC2 API to create, delete and attach volumes, and a node component (a DaemonSet) on every node that formats and mounts them. The controller is the part that needs AWS permissions. If EKS itself is new to you, our plain-English EKS guide covers clusters, nodes and add-ons.

Jake: "So Kubernetes asks for a disk, but someone still has to go and get it?"

Ethan: "And that someone is the driver. We never hired it."

Install the EBS CSI driver add-on, step by step

  1. Create the IAM role the driver's controller will use, with the AWS managed policy AmazonEBSCSIDriverPolicy (next section).
  2. Install the add-on: in the EKS console, open the cluster, choose Add-ons, Get more add-ons, select Amazon EBS CSI Driver, choose the version, and select the IAM role (with Pod Identity, the console can create the association for you).
  3. Check the pods are running: kubectl get pods -n kube-system -l app.kubernetes.io/name=aws-ebs-csi-driver should show the controller and one node pod per node, all Running.
  4. Create a gp3 StorageClass and, if you want, make it the default (below).
  5. Test with a small PVC and pod, then check that the PVC is Bound and a new EBS volume appears in the EC2 console.

With the CLI:

# Versions available for your Kubernetes version
aws eks describe-addon-versions --addon-name aws-ebs-csi-driver --kubernetes-version 1.31 \
  --query "addons[].addonVersions[].addonVersion" --output text

# Install the add-on (IRSA style: pass the role for the service account)
aws eks create-addon --cluster-name shop-eks --addon-name aws-ebs-csi-driver \
  --service-account-role-arn arn:aws:iam::111122223333:role/AmazonEKS_EBS_CSI_DriverRole

# Status should become ACTIVE
aws eks describe-addon --cluster-name shop-eks --addon-name aws-ebs-csi-driver \
  --query "addon.[status,addonVersion]"

With eksctl:

eksctl create addon --cluster shop-eks --name aws-ebs-csi-driver \
  --service-account-role-arn arn:aws:iam::111122223333:role/AmazonEKS_EBS_CSI_DriverRole --force

The managed add-on is the recommended route because EKS handles its updates and security patches. Installing the driver with its Helm chart also works, but then you maintain it yourself.

IAM: Pod Identity or IRSA for the controller

The controller needs to call EC2 (CreateVolume, AttachVolume, DeleteVolume, snapshots and tags). The AWS managed policy AmazonEBSCSIDriverPolicy grants exactly that. You attach it to a role and connect the role to the controller's Kubernetes service account, ebs-csi-controller-sa in kube-system, in one of two ways:

EKS Pod Identity (simpler): the role trusts the Pod Identity service, and an association links it to the service account. The cluster needs the EKS Pod Identity Agent add-on.

# Trust policy for the role
{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Principal": {"Service": "pods.eks.amazonaws.com"},
    "Action": ["sts:AssumeRole", "sts:TagSession"]
  }]
}

aws iam attach-role-policy --role-name AmazonEKS_EBS_CSI_DriverRole \
  --policy-arn arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy

aws eks create-pod-identity-association --cluster-name shop-eks \
  --namespace kube-system --service-account ebs-csi-controller-sa \
  --role-arn arn:aws:iam::111122223333:role/AmazonEKS_EBS_CSI_DriverRole

IRSA (IAM roles for service accounts): the role trusts the cluster's OIDC provider, limited to that service account. eksctl writes it for you:

eksctl utils associate-iam-oidc-provider --cluster shop-eks --approve

eksctl create iamserviceaccount --cluster shop-eks --namespace kube-system \
  --name ebs-csi-controller-sa --role-name AmazonEKS_EBS_CSI_DriverRole \
  --attach-policy-arn arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy \
  --role-only --approve

Which should you pick?

EKS Pod IdentityIRSA
Trust policyOne generic principal, pods.eks.amazonaws.comYour cluster's OIDC provider plus a service-account condition
Reuse across clustersSame role works in many clustersTrust must list each cluster's OIDC provider
Extra setupPod Identity Agent add-onAn IAM OIDC provider for the cluster
Where you link itA pod identity associationThe add-on's service account role ARN
Best forNew clusters, many clustersExisting setups already using IRSA

With IRSA, the trust policy's condition must name system:serviceaccount:kube-system:ebs-csi-controller-sa exactly; a typo there produces "not authorized to perform sts:AssumeRoleWithWebIdentity" in the controller logs. A shortcut some guides suggest, attaching the policy to the node role instead, also works, but it gives every pod on the node the right to create and delete EBS volumes, so a dedicated role is the better habit.

What is inside AmazonEBSCSIDriverPolicy

The managed policy is worth reading once, because its conditions explain several behaviors that otherwise look like bugs. AWS updates it as the driver gains features (it was at version 15, last edited in May 2026, when this page was written), and it falls into four groups:

  • Read-only lookups on everything: describing Availability Zones, instances, instance types, volumes, volume modifications, volume status, snapshots and tags. The driver uses these to place volumes and track their state.
  • Attach, detach, modify and snapshot any volume, which is what moving a volume between nodes, resizing and backups need.
  • Create volumes and snapshots only with the driver's tags. CreateVolume is allowed when the request carries the tag ebs.csi.aws.com/cluster=true or a CSIVolumeName tag, which the driver always adds. Snapshots work the same way with CSIVolumeSnapshotName.
  • Delete only what the driver created. DeleteVolume and DeleteSnapshot are allowed only on resources carrying those same tags (or the kubernetes.io/created-for/pvc/name tag).

That last group is a safety net: the driver cannot delete EBS volumes it did not create, even if a Kubernetes object points at one. If you bring an existing volume into Kubernetes and later delete its PV with a Delete policy, the volume survives, because it lacks the tags. The flip side is that removing those tags by hand from a driver-created volume leaves it undeletable by the driver, and you will clean it up yourself.

Two things the policy does not include. There are no KMS permissions, so volumes encrypted with a customer managed key need an extra policy on the same role (the KMS actions are listed in the error table below). And it has no permission scoping by cluster beyond the tags, so in an account with several clusters, one driver role can technically manage another cluster's tagged volumes. For strict separation, copy the policy into a customer managed one and add conditions on a cluster-specific tag, which you can set through the StorageClass's tag parameters.

The gp3 StorageClass to use

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: gp3
  annotations:
    storageclass.kubernetes.io/is-default-class: "true"
provisioner: ebs.csi.aws.com
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true
reclaimPolicy: Delete
parameters:
  type: gp3
  encrypted: "true"
  # iops: "3000"        # gp3 baseline; raise for busy databases
  # throughput: "125"   # MiB/s baseline
  # kmsKeyId: arn:aws:kms:us-east-1:111122223333:key/1a2b3c4d-...

Why each line matters:

  • provisioner: ebs.csi.aws.com: the CSI driver, not the old in-tree name.
  • WaitForFirstConsumer: your volume is created only once your pod is scheduled, in that node's Availability Zone. With Immediate, you can end up with a volume in a zone where your pod cannot run.
  • allowVolumeExpansion: true: lets you grow your disk later by editing the PVC.
  • type: gp3: the current general-purpose volume type, cheaper per GB than gp2 with a fixed baseline of performance.
  • encrypted: "true": encrypts every volume, with the account's default EBS key unless you name a kmsKeyId.

Older clusters often have a gp2 StorageClass marked as default; newer EKS versions no longer mark it as default. Check with kubectl get storageclass: exactly one class should show "(default)", or PVCs without a storageClassName will pick the wrong one or none. To remove the default flag from gp2: kubectl annotate storageclass gp2 storageclass.kubernetes.io/is-default-class=false --overwrite. Our EBS vs instance store guide explains the volume types themselves.

A test claim and pod:

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: test-claim
spec:
  accessModes: ["ReadWriteOnce"]
  storageClassName: gp3
  resources:
    requests:
      storage: 4Gi
---
apiVersion: v1
kind: Pod
metadata:
  name: test-app
spec:
  containers:
    - name: app
      image: public.ecr.aws/amazonlinux/amazonlinux:2023
      command: ["/bin/sh", "-c", "date > /data/out.txt; sleep 3600"]
      volumeMounts:
        - name: data
          mountPath: /data
  volumes:
    - name: data
      persistentVolumeClaim:
        claimName: test-claim

With WaitForFirstConsumer, the claim shows Pending until the pod is scheduled; that is normal. Once the pod starts, kubectl get pvc test-claim should show Bound.

StorageClass parameters for other volume types

The gp3 class covers most workloads. When a database needs guaranteed performance, or a log store needs cheap throughput, add a second class with different parameters rather than changing the default one:

ParameterExampleWhat it does
typegp3, io2, st1, sc1Volume type: general purpose, provisioned IOPS, or throughput HDD types for big sequential data
iops"6000"Fixed IOPS for gp3 and io2
iopsPerGB"50"IOPS that grow with the requested size (io2 and gp3)
throughput"250"gp3 throughput in MiB/s
csi.storage.k8s.io/fstypexfsFile system to create; ext4 is the default
encrypted + kmsKeyId"true" + key ARNEncryption, with your own key if named
tagSpecification_1"team=ops"Extra tags on every volume, for cost reports

A class for a busy database might be type: io2 with iops: "10000"; one for a log archive might be type: st1, which is cheap per GB but must be at least 125 GiB and cannot be a boot volume. Name classes after what they are for (fast-db, bulk-logs) so developers pick by purpose, and keep exactly one default. Tags from tagSpecification_N are the easiest way to see Kubernetes storage per team or app in Cost Explorer.

PVC Pending and other EBS CSI errors, fixed

What you seeCauseFix
PVC Pending: "waiting for a volume to be created, either by external provisioner ebs.csi.aws.com..."Driver not installed, or its controller is not runningInstall the add-on; check the controller pods
UnauthorizedOperation or "not authorized to perform: ec2:CreateVolume" in controller logsNo IAM role on the controller's service accountPod Identity association or IRSA role with AmazonEBSCSIDriverPolicy; restart the controller
"not authorized to perform sts:AssumeRoleWithWebIdentity"IRSA trust policy names the wrong OIDC provider or service accountFix the trust condition (kube-system:ebs-csi-controller-sa)
PVC Pending with no storage classNo default StorageClass, or the claim names one that does not existCreate gp3 and mark it default, or set storageClassName
Pod Pending: "volume node affinity conflict"The volume is in a zone with no suitable nodeUse WaitForFirstConsumer; keep nodes in every zone your volumes use
"Multi-Attach error for volume ... already used by pod"A ReadWriteOnce volume still attached to another node, often during a rolling updateUse a StatefulSet or the Recreate strategy; wait for the old pod to stop
Volume creation fails with KMS errorsCustomer managed key without permissions for the driver's roleAllow the role kms:CreateGrant, Decrypt, GenerateDataKeyWithoutPlaintext, ReEncrypt and DescribeKey
Pods on Fargate cannot mount the PVCFargate pods do not support EBS volumesRun them on EC2 nodes, or use Amazon EFS
Pods Pending: too many volumes on the nodeThe instance type's limit on attached volumes is reachedLarger or Nitro instance types, or more nodes
Add-on stuck in CREATE_FAILED or DEGRADEDConflicting self-installed (Helm) driver, or controller pods not schedulableRemove the Helm release, or create the add-on with conflict resolution OVERWRITE

Three commands find the cause in nearly every case:

# What the claim is waiting for
kubectl describe pvc test-claim

# What the controller tried and why AWS refused
kubectl logs -n kube-system deploy/ebs-csi-controller -c csi-provisioner --tail=50
kubectl logs -n kube-system deploy/ebs-csi-controller -c ebs-plugin --tail=50

For Ethan's cluster, the first command showed the "waiting for external provisioner" message: no driver at all. After installing the add-on, the logs showed UnauthorizedOperation, because he had skipped the IAM role. With the Pod Identity association added and the controller restarted, the PVC was Bound within a minute. If pods are Pending for reasons that have nothing to do with storage, our pods Pending guide covers the others.

Encrypted volumes with your own KMS key

With encrypted: "true" and no key named, volumes use the account's default EBS key, which needs no extra permissions. Naming a customer managed key with kmsKeyId is common for compliance, and it is where volume creation starts failing, because the managed driver policy contains no KMS permissions. Add a policy like this to the driver's role, with your key's ARN:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": ["kms:CreateGrant", "kms:ListGrants", "kms:RevokeGrant"],
      "Resource": "arn:aws:kms:us-east-1:111122223333:key/KEY-ID",
      "Condition": {"Bool": {"kms:GrantIsForAWSResource": "true"}}
    },
    {
      "Effect": "Allow",
      "Action": ["kms:Encrypt", "kms:Decrypt", "kms:ReEncrypt*",
                 "kms:GenerateDataKey*", "kms:DescribeKey"],
      "Resource": "arn:aws:kms:us-east-1:111122223333:key/KEY-ID"
    }
  ]
}

The GrantIsForAWSResource condition lets the role create grants only for AWS services such as EBS, not for arbitrary principals. The key's own key policy must also allow the account's IAM policies to be used, which the default key policy does. If the account has EBS encryption by default turned on, every volume is encrypted even when the StorageClass says nothing, with whichever key the account default names; a default pointing at a customer managed key therefore needs these same permissions on the driver's role.

Availability Zones, Multi-Attach and StatefulSets

Two EBS facts shape how you run stateful apps on EKS:

  • An EBS volume lives in one Availability Zone. Your pod using it can only run on nodes in that zone. If your nodes in that zone are gone (scaled in, or the node group spans fewer zones than before), the pod stays Pending with a node affinity conflict.
  • A normal EBS volume attaches to one node at a time (ReadWriteOnce). During a rolling update, a new pod on another node cannot attach the volume until the old pod releases it, which shows as a Multi-Attach error for a few minutes or until the old pod is gone.

The patterns that avoid trouble: run databases as StatefulSets (each replica gets its own volume), use the Recreate deployment strategy for single-replica apps with a volume, keep node groups in every zone where you have volumes, and for files that many pods must share at once, use Amazon EFS with its own CSI driver instead of EBS.

Jake: "So the disk can't follow the pod to another zone?"

Ethan: "No. The pod has to go where the disk is. WaitForFirstConsumer just makes sure the disk is born in the right place."

EKS Auto Mode: no add-on, and a different provisioner

Clusters created in EKS Auto Mode work differently, and mixing up the two setups is a fresh source of Pending claims. In Auto Mode, AWS runs block storage for you: there is no aws-ebs-csi-driver add-on to install and no driver IAM role to create. But Auto Mode does not create a StorageClass either, and its provisioner has a different name:

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: auto-ebs-sc
  annotations:
    storageclass.kubernetes.io/is-default-class: "true"
allowedTopologies:
  - matchLabelExpressions:
      - key: eks.amazonaws.com/compute-type
        values: ["auto"]
provisioner: ebs.csi.eks.amazonaws.com      # Auto Mode, not ebs.csi.aws.com
volumeBindingMode: WaitForFirstConsumer
parameters:
  type: gp3
  encrypted: "true"

Note the extra .eks in ebs.csi.eks.amazonaws.com. A StorageClass copied from a non-Auto cluster, naming ebs.csi.aws.com, leaves claims Pending forever on an Auto Mode cluster, because nothing there answers to that name. The allowedTopologies block keeps pods that need these volumes on Auto Mode nodes, which matters in clusters that also run ordinary node groups.

A few differences from the add-on: to use an existing volume, it needs the tag eks:eks-cluster-name set to the cluster's name, and custom volume tags are set through the StorageClass rather than driver flags. If your cluster mixes Auto Mode and managed node groups and you also install the add-on, keep the two StorageClasses clearly named, so each workload gets the provisioner that serves its nodes.

Resizing a volume

If your StorageClass has allowVolumeExpansion: true, you grow a disk with one edit to your claim:

kubectl patch pvc test-claim -p '{"spec":{"resources":{"requests":{"storage":"20Gi"}}}}'
kubectl get pvc test-claim -w

The driver enlarges the EBS volume and the file system online, usually without restarting the pod. Volumes can only grow, never shrink, and EBS allows another size change on the same volume only after a cooling-off period of several hours, so pick a sensible step rather than growing a gigabyte at a time. The same limits apply outside Kubernetes; our guide to growing an EBS volume live explains them.

Watch the claim's conditions while it grows. Resizing means the EBS volume itself is being enlarged; FileSystemResizePending means the volume is bigger and the file system will be extended when a pod mounts it, which for a running pod usually happens within a minute. If the claim stays in FileSystemResizePending with no pod using it, start one: the file system can only be grown while mounted. And if the request fails with a message about the StorageClass, check allowVolumeExpansion; it can be set on an existing class with kubectl patch, and the change applies to claims already created from it.

Moving existing volumes from gp2 to gp3

Changing the StorageClass to gp3 affects only new volumes. Volumes created earlier from an old gp2 class stay gp2, quietly costing about 20% more per GB for the same baseline. You can convert them in place, without touching Kubernetes:

  1. Find the volume: kubectl get pv shows each PV's volume handle, the vol-... ID, in the spec.csi.volumeHandle field.
  2. Modify it in EC2: aws ec2 modify-volume --volume-id vol-0abc123 --volume-type gp3, or the console's Modify volume action. The change happens online; the pod keeps running.
  3. Wait for "optimizing" to finish: aws ec2 describe-volumes-modifications --volume-ids vol-0abc123. Performance is normal during the change, though it can take hours for large volumes.
  4. Repeat for each gp2 volume, then remove or replace the old gp2 StorageClass so nothing new is created on it.

Kubernetes does not record the volume type in the PV, so it neither notices nor cares. gp2 volumes larger than 1 TB had higher baseline IOPS than gp3's 3,000, so for those, add --iops to the modify command to keep their performance. Newer Kubernetes versions also offer VolumeAttributesClass for changing volume settings from inside the cluster, but for a one-off migration the EC2 command is simpler.

Using an existing EBS volume in Kubernetes

Sometimes the data already exists: a volume restored from a snapshot, or a disk detached from an old server. Instead of having the driver create a new volume, you describe the existing one as a PersistentVolume and bind a claim to it:

apiVersion: v1
kind: PersistentVolume
metadata:
  name: legacy-data
spec:
  capacity:
    storage: 50Gi
  accessModes: ["ReadWriteOnce"]
  persistentVolumeReclaimPolicy: Retain
  storageClassName: ""
  csi:
    driver: ebs.csi.aws.com
    volumeHandle: vol-0abc1234def567890
    fsType: ext4
  nodeAffinity:
    required:
      nodeSelectorTerms:
        - matchExpressions:
            - key: topology.kubernetes.io/zone
              operator: In
              values: ["us-east-1a"]
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: legacy-data
spec:
  accessModes: ["ReadWriteOnce"]
  storageClassName: ""
  volumeName: legacy-data
  resources:
    requests:
      storage: 50Gi

Four details make it work. The zone in nodeAffinity must match the volume's Availability Zone, or the pod is scheduled somewhere it cannot attach. The empty storageClassName stops the default class from creating a new volume instead. volumeName on the claim binds it to exactly this PV. And Retain means deleting the claim later leaves the volume alone, which, combined with the policy's tag rules above, protects data you brought in by hand.

Snapshots and backups

You can take Kubernetes VolumeSnapshots of your claims, and the driver turns them into EBS snapshots. For that you need the snapshot CRDs and controller, available on EKS as the CSI snapshot controller add-on, plus a VolumeSnapshotClass with driver: ebs.csi.aws.com. You can then snapshot a PVC and create new PVCs from the snapshot, which is how you clone a database for testing. For scheduled, policy-based backups across clusters, AWS Backup supports EKS too. Snapshots are incremental and billed per GB stored; our snapshot billing guide explains why the second one costs less than the first.

apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshotClass
metadata:
  name: ebs-snapshots
driver: ebs.csi.aws.com
deletionPolicy: Delete
---
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshot
metadata:
  name: tickets-before-upgrade
spec:
  volumeSnapshotClassName: ebs-snapshots
  source:
    persistentVolumeClaimName: test-claim

When kubectl get volumesnapshot shows READYTOUSE as true, the EBS snapshot is complete. To restore, create a new PVC with a dataSource pointing at the snapshot; the driver creates a fresh volume from it, which is the safe way to test a database upgrade on a copy. A snapshot taken while a database is writing is crash-consistent, like pulling the power, so for databases, pause writes or use the database's own backup tool when you need a clean copy.

Terraform

resource "aws_iam_role" "ebs_csi" {
  name = "AmazonEKS_EBS_CSI_DriverRole"
  assume_role_policy = jsonencode({
    Version = "2012-10-17"
    Statement = [{
      Effect    = "Allow"
      Principal = { Service = "pods.eks.amazonaws.com" }
      Action    = ["sts:AssumeRole", "sts:TagSession"]
    }]
  })
}

resource "aws_iam_role_policy_attachment" "ebs_csi" {
  role       = aws_iam_role.ebs_csi.name
  policy_arn = "arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy"
}

resource "aws_eks_pod_identity_association" "ebs_csi" {
  cluster_name    = aws_eks_cluster.shop.name
  namespace       = "kube-system"
  service_account = "ebs-csi-controller-sa"
  role_arn        = aws_iam_role.ebs_csi.arn
}

resource "aws_eks_addon" "ebs_csi" {
  cluster_name = aws_eks_cluster.shop.name
  addon_name   = "aws-ebs-csi-driver"
  depends_on   = [aws_eks_pod_identity_association.ebs_csi]
}

Your cluster also needs the eks-pod-identity-agent add-on for Pod Identity, and the depends_on makes sure the association exists before the driver starts, so your controller never runs without permissions. If you use IRSA instead, set service_account_role_arn on the aws_eks_addon and give the role an OIDC trust policy. The StorageClass itself can be managed with the Kubernetes provider's kubernetes_storage_class_v1 resource.

Two ordering details save a failed first apply. The add-on's controller pods need nodes to run on, so on a brand-new cluster make the add-on depend on the node group too; otherwise it can sit in a degraded state until nodes appear. And set resolve_conflicts_on_update = "OVERWRITE" on the aws_eks_addon if anyone ever installed the driver by hand on that cluster, so Terraform takes ownership cleanly instead of failing on fields it did not create. Pin addon_version explicitly once things work, so a routine terraform apply never upgrades the driver by surprise.

Installing with Helm instead of the add-on

On clusters that are not EKS, such as self-managed Kubernetes on EC2, or when you need a driver version or setting the add-on does not offer yet, the open-source project's Helm chart installs the same driver:

helm repo add aws-ebs-csi-driver https://kubernetes-sigs.github.io/aws-ebs-csi-driver
helm repo update
helm upgrade --install aws-ebs-csi-driver aws-ebs-csi-driver/aws-ebs-csi-driver \
  --namespace kube-system

Permissions work the same way: the controller's service account needs a role with AmazonEBSCSIDriverPolicy, linked through IRSA (an annotation on the service account, set through the chart's values) or Pod Identity on EKS. On self-managed clusters without either, the fallback is the node instance role, with the security trade-off described earlier.

Do not run both. A Helm-installed driver and the EKS add-on on the same cluster fight over the same Deployment, DaemonSet and CSIDriver object; that conflict is the usual reason an add-on lands in CREATE_FAILED. To move from Helm to the add-on, uninstall the Helm release first (existing volumes are not affected), then create the add-on.

Watching your volumes: full disks, slow disks and node limits

Once storage works, the next problems are a disk filling up and a disk too slow for its workload. Both are visible before they hurt:

  • Disk space: the kubelet reports kubelet_volume_stats_used_bytes and kubelet_volume_stats_capacity_bytes for every mounted claim. If you scrape metrics with Prometheus, an alert at 80% used gives you time to grow the claim, which takes one command with expansion enabled.
  • Performance: each EBS volume publishes CloudWatch metrics such as VolumeReadOps, VolumeWriteOps and VolumeQueueLength. A queue length that stays high means the volume needs more IOPS or throughput, which for gp3 is a StorageClass parameter or an online modify, not a bigger disk.
  • Burst credits on gp2: old gp2 volumes also report BurstBalance. When it falls to zero, performance drops to the baseline, a classic cause of a database that is fast in the morning and slow by afternoon. Moving to gp3 removes the burst model entirely.

How many volumes fit on one node? Each instance type can attach a limited number of EBS volumes, and the driver reports that number to Kubernetes for each node. kubectl get csinode NODE_NAME -o yaml shows it as the allocatable count for ebs.csi.aws.com. When a node is full, new pods with volumes are scheduled elsewhere or stay Pending, which looks like a storage problem but is really a capacity one: bigger instances, or more nodes, solve it.

What EBS volumes on EKS cost, and finding forgotten ones

The driver and add-on are free; you pay for the EBS volumes and snapshots they create, at normal EBS prices. In US Regions, gp3 is about $0.08 per GB per month and includes 3,000 IOPS and 125 MiB/s, with extra IOPS and throughput billed only if you ask for them in the StorageClass. A 20 GB database volume is therefore about $1.60 a month, and the test claim on this page about 32 cents.

The cost that surprises teams is volumes nobody uses. Two ways they appear:

  • Retain reclaim policies. Deleting a claim from a class with reclaimPolicy: Retain leaves the EBS volume behind on purpose, still billed, with a PV in Released state.
  • Deleted clusters. Tearing down a cluster without deleting its claims first can leave every volume behind, detached and billed.

The driver tags what it creates, which makes these easy to find. In EC2, filter volumes by the tag ebs.csi.aws.com/cluster and state available (not attached): aws ec2 describe-volumes --filters Name=tag-key,Values=ebs.csi.aws.com/cluster Name=status,Values=available. The kubernetes.io/created-for/pvc/name and namespace tags on each one tell you which claim it belonged to, so you can decide whether to snapshot and delete it. A monthly run of that command is a cheap habit.

Jake: "So deleting the test cluster didn't delete the disks?"

Ethan: "Not the ones we told it to keep. Two forgotten volumes, two dollars a month. The filter found them in a second."

EBS, EFS or instance store for your pods?

The EBS CSI driver is the right answer for most single-pod storage on EKS, but not for everything:

  • EBS for one pod's own disk: databases, queues and anything run as a StatefulSet. Fast and cheap, but tied to one zone and one node at a time.
  • Amazon EFS (with its own CSI driver) when many pods on many nodes must read and write the same files at once, or when pods run on Fargate. It spans zones and grows by itself, at a higher price per GB and with more latency than EBS.
  • Instance store or emptyDir for scratch space that may vanish when the pod or node does: caches, temporary build files. It costs nothing extra and is very fast, but nothing survives a node replacement.

Our EBS vs instance store guide covers the trade-off in detail. A common mix is EBS for the database, EFS for user uploads shared across web pods, and emptyDir for caches.

The choice also shapes how you scale. A Deployment with ten replicas cannot share one EBS claim, because ReadWriteOnce allows one node; either each replica gets its own volume through a StatefulSet, or the shared data moves to EFS or S3. Many web apps are happier keeping no files on pods at all: uploads go straight to S3, and the pods stay stateless, which makes them cheap to replace.

Jake: "So the ticket database gets its own disk, and the photos go to S3?"

Ethan: "Exactly. The database needs a fast private disk; the photos need to be reachable from every pod."

Versions and upgrades

Each add-on version supports a range of Kubernetes versions, so you check the driver every time you upgrade your cluster. A safe routine:

  1. List compatible versions for your target Kubernetes version with aws eks describe-addon-versions (shown above).
  2. Update the add-on first if your current version does not support the target: the console's Add-ons tab, or aws eks update-addon --cluster-name shop-eks --addon-name aws-ebs-csi-driver --addon-version VERSION.
  3. Wait for ACTIVE with aws eks describe-addon, and confirm your controller and node pods are Running again.
  4. Upgrade the control plane, then your node groups.
  5. Run your test PVC again to prove a new volume still provisions.

Updating the driver does not touch your existing volumes; running pods keep their mounts while the driver pods restart.

Which version is installed, and which is the default? aws eks describe-addon --cluster-name shop-eks --addon-name aws-ebs-csi-driver --query addon.addonVersion shows the installed one. In the console's add-on version list, one version per Kubernetes release is marked as the default; it is the version EKS installs when you do not choose, and usually a little behind the newest. Picking the newest gets fixes sooner; picking the default gets the version most clusters run.

Custom settings survive updates if you use configuration values. The add-on accepts a JSON document of settings, such as controller replicas, tolerations or extra tags, through --configuration-values on create or update. aws eks describe-addon-configuration --addon-name aws-ebs-csi-driver --addon-version VERSION prints the schema of what can be set. Changes made by editing the Deployment with kubectl instead are overwritten or cause conflicts at the next update; --resolve-conflicts OVERWRITE replaces them with the add-on's values, and PRESERVE keeps them, which can leave the add-on in a degraded state.

Day-one storage checklist for a new EKS cluster

  1. Decide the mode: Auto Mode uses ebs.csi.eks.amazonaws.com and needs no add-on; standard clusters need the aws-ebs-csi-driver add-on.
  2. Create the driver role with AmazonEBSCSIDriverPolicy, plus the KMS policy if you use your own key.
  3. Link it with a Pod Identity association (and the Pod Identity Agent add-on) or IRSA.
  4. Install and pin the add-on version, in Terraform or your usual tool.
  5. Create one default gp3 StorageClass with WaitForFirstConsumer, expansion and encryption on, and remove the default flag from any old gp2 class.
  6. Run the test claim and pod, and confirm a volume appears in EC2 with the driver's tags.
  7. Add the snapshot controller add-on if you plan to use VolumeSnapshots, and a disk-space alert.

Fifteen minutes on a new cluster, and nobody spends an afternoon wondering why the first database chart is stuck in Pending.

Frequently asked questions

Why is my PVC stuck in Pending on EKS?

Usually the EBS CSI driver is not installed, its controller has no IAM permissions, or there is no matching StorageClass. kubectl describe pvc shows which.

What is the Amazon EBS CSI driver?

The Kubernetes plugin that creates, attaches and deletes EBS volumes for PersistentVolumeClaims on EKS and self-managed clusters on AWS.

Do I need the EBS CSI driver on EKS?

Yes, for EBS-backed volumes on Kubernetes 1.23 and later; the built-in provisioner hands all work to the CSI driver.

How do I install the EBS CSI driver on EKS?

Add the aws-ebs-csi-driver add-on in the console, with aws eks create-addon or eksctl create addon, together with an IAM role.

What IAM policy does the EBS CSI driver need?

The AWS managed policy AmazonEBSCSIDriverPolicy, on a role linked to ebs-csi-controller-sa in kube-system.

Should I use Pod Identity or IRSA for the EBS CSI driver?

Either works. Pod Identity is simpler to set up; IRSA uses the cluster's OIDC provider and a service-account condition.

What StorageClass should I use for EBS on EKS?

A gp3 class with provisioner ebs.csi.aws.com, volumeBindingMode WaitForFirstConsumer, allowVolumeExpansion true and encryption on.

What does "volume node affinity conflict" mean?

The pod's volume is in an Availability Zone where the pod cannot be scheduled. Use WaitForFirstConsumer and keep nodes in that zone.

What causes a Multi-Attach error on EKS?

A ReadWriteOnce EBS volume is still attached to another node, usually during a rolling update. Use a StatefulSet or the Recreate strategy.

Can Fargate pods use EBS volumes?

No. Run those pods on EC2 nodes, or use Amazon EFS for storage on Fargate.

How do I resize an EBS volume on EKS?

With allowVolumeExpansion on the StorageClass, increase the PVC's storage request; the driver grows the volume and file system online.

How do I check the EBS CSI driver is working?

Check the controller and node pods in kube-system, then create a test PVC and pod and confirm the PVC becomes Bound.

How do I install the EBS CSI driver with Terraform?

Use aws_eks_addon with addon_name aws-ebs-csi-driver, plus an IAM role and a Pod Identity association or service_account_role_arn.

Why does my EBS volume fail with a KMS error?

The driver's role cannot use the customer managed key; allow it kms:CreateGrant, Decrypt, GenerateDataKeyWithoutPlaintext, ReEncrypt and DescribeKey.

What is the difference between gp2 and gp3 on EKS?

gp3 is the newer type, cheaper per GB with fixed baseline performance you can raise separately; gp2 performance grows with size.

Can I take snapshots of EKS volumes?

Yes, with VolumeSnapshots, the CSI snapshot controller add-on and a VolumeSnapshotClass for ebs.csi.aws.com.

What permissions are in AmazonEBSCSIDriverPolicy?

EC2 describe calls, attach, detach, modify and snapshot, and create or delete volumes and snapshots only when they carry the driver's tags. It has no KMS permissions.

Why can't the EBS CSI driver delete my volume?

The policy only allows deleting volumes with the driver's tags. Volumes created outside Kubernetes, or with the tags removed, must be deleted by hand.

Does EKS Auto Mode need the EBS CSI driver add-on?

No. Auto Mode manages block storage itself, but you must create a StorageClass with provisioner ebs.csi.eks.amazonaws.com.

Why is my PVC Pending on an EKS Auto Mode cluster?

Often the StorageClass names ebs.csi.aws.com, the add-on's provisioner. Auto Mode needs ebs.csi.eks.amazonaws.com.

How do I change an EKS volume from gp2 to gp3?

Modify the EBS volume in EC2 with modify-volume --volume-type gp3. It happens online and Kubernetes needs no change.

How do I use an existing EBS volume in EKS?

Create a PersistentVolume with driver ebs.csi.aws.com, the vol- ID as volumeHandle and the volume's zone in nodeAffinity, then bind a claim with volumeName.

How do I find orphaned EBS volumes from EKS?

Filter EC2 volumes by tag key ebs.csi.aws.com/cluster and status available; the created-for tags show which claim each belonged to.

How much does the EBS CSI driver cost?

Nothing itself. You pay EBS prices, about $0.08 per GB-month for gp3 in US Regions, plus snapshots.

What KMS permissions does the EBS CSI driver need?

kms:CreateGrant, ListGrants and RevokeGrant with GrantIsForAWSResource, plus Encrypt, Decrypt, ReEncrypt*, GenerateDataKey* and DescribeKey on the key.

What is the difference between ebs.csi.aws.com and ebs.csi.eks.amazonaws.com?

ebs.csi.aws.com is the provisioner of the EBS CSI driver add-on; ebs.csi.eks.amazonaws.com is the built-in block storage of EKS Auto Mode.

Does deleting a PVC delete the EBS volume?

With reclaimPolicy Delete, yes. With Retain, the volume stays and is still billed until you delete it.

Can several pods share one EBS volume on EKS?

Not across nodes with ReadWriteOnce. Use a StatefulSet for per-pod volumes, or EFS or S3 for shared data.

How do I install the EBS CSI driver with Helm?

Add the repo https://kubernetes-sigs.github.io/aws-ebs-csi-driver and helm upgrade --install aws-ebs-csi-driver into kube-system. Never run it alongside the EKS add-on.

How many EBS volumes can an EKS node attach?

It depends on the instance type. kubectl get csinode NODE -o yaml shows the allocatable count the driver reports for ebs.csi.aws.com.

How do I get alerts before an EKS volume fills up?

Alert on kubelet_volume_stats_used_bytes divided by kubelet_volume_stats_capacity_bytes, for example at 80%, then grow the claim.

Which add-on version should I install?

One compatible with your cluster's Kubernetes version; list them with aws eks describe-addon-versions --addon-name aws-ebs-csi-driver.

For readers preparing for an AWS certification

We have been covering AWS certifications alongside our fixes, so here is a short extra for readers studying for one. If you only came for the fix, you already have it; feel free to skip this part.

Exams that test this topic: CloudOps Engineer – Associate (SOA-C03) • Developer – Associate (DVA-C03 from December 1, 2026) • Solutions Architect – Associate (SAA-C03).

Here are the exam-style questions this topic tends to raise, with the reasoning you need to answer them:

1. PersistentVolumeClaims on a new EKS cluster stay Pending, waiting for the ebs.csi.aws.com provisioner. What is missing?

The Amazon EBS CSI driver add-on (with an IAM role for its controller).

2. Which AWS managed policy grants the EBS CSI driver its EC2 permissions?

AmazonEBSCSIDriverPolicy.

3. Which two methods give a Kubernetes service account on EKS an IAM role?

EKS Pod Identity and IAM roles for service accounts (IRSA).

4. Why should an EBS StorageClass use volumeBindingMode WaitForFirstConsumer?

So the volume is created in the Availability Zone where the pod is scheduled.

5. Many pods on different nodes must read and write the same files at once. Which storage fits?

Amazon EFS (ReadWriteMany), not EBS.

6. Can EKS pods running on Fargate use EBS volumes?

No; use Amazon EFS or run them on EC2 nodes.

7. Which EBS volume type is the current general-purpose default with baseline performance set separately from size?

gp3.

Exam codes and dates change often. Our AWS certification changes page keeps track of what is current.

πŸ“š ALSO READ

Where to go next, from kubectl access to growing volumes:

📌 Bookmark this; the StorageClass and the error table are the parts you will come back for.

The test database ran on its gp3 volume for a month, survived two node replacements thanks to the StatefulSet, and grew once from 20 to 50 GB with a single command. Ethan now adds three things to every new cluster on day one: the EBS CSI add-on, its Pod Identity role, and a default gp3 StorageClass. Jake's summary for the team notes: "Kubernetes asks for disks. The driver fetches them. Give the driver permission."

📌 If you keep one line from this page

On EKS, PVCs need the aws-ebs-csi-driver add-on with AmazonEBSCSIDriverPolicy on a role for ebs-csi-controller-sa, plus a gp3 StorageClass using ebs.csi.aws.com and WaitForFirstConsumer; when a PVC is Pending, read kubectl describe pvc and the controller logs.

One zone per volume · one node per volume · no EBS on Fargate · grow, never shrink.

Revision note. Written October 19, 2026. On EKS, storage is an add-on, not a given; installing it on day one saves the hour of Pending.

Related