An EKS cluster with managed node groups and an associated OIDC provider fails to provision gp3 EBS volumes when a PVC is requested. kubectl describe pvc shows a StorageClass provisioning failure and EC2:UnauthorizedOperation when attempting to create the EBS volume. How can you fix this?
Choose an answer
Tap an option to check your answer.
Correct answer: Create an IAM role for the Amazon EBS CSI driver that has the required permissions and trust policy, and attach that IAM role to the Amazon EBS CSI driver add-on in the cluster..
Why this is the answer
The error "EC2:UnauthorizedOperation" indicates that the Amazon EBS CSI driver lacks the necessary IAM permissions to create EBS volumes. The correct solution is to create an IAM role with the required permissions (e.g., ec2:CreateVolume, ec2:AttachVolume) and a trust policy allowing the EBS CSI driver's service account to assume this role. This IAM role is then associated with the Amazon EBS CSI driver add-on. Creating a Kubernetes ClusterRole only grants permissions within Kubernetes, not to AWS APIs like EC2. Adding an annotation to the PVC specifies the volume type but doesn't resolve underlying permission issues. Creating a StorageClass is necessary for dynamic provisioning but doesn't address the UnauthorizedOperation error, which is an IAM problem.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed