New EBS-backed PVCs fail with `could not create volume in EC2: UnauthorizedOperation` only after the security team enabled default EBS encryption with a customer-managed KMS key.
AdvancedTroubleshootingEKS-specific issues
Answer
Likely causes → Account-level default encryption now uses a CMK, and the EBS CSI controller role is not allowed to use it (kms:CreateGrant, kms:GenerateDataKeyWithoutPlaintext, kms:Decrypt). The key policy may also not delegate to IAM.
Diagnose →
aws ec2 get-ebs-default-kms-key-id
aws kms get-key-policy --key-id <key-id> --policy-name default
kubectl logs -n kube-system deploy/ebs-csi-controller -c ebs-plugin | grep -i kms
Fix → Allow the CSI role in the KMS key policy or IAM policy (with kms:GrantIsForAWSResource condition on CreateGrant), and set kmsKeyId in the StorageClass if a specific key is required. Nodes launched from encrypted AMIs or with encrypted root volumes need the same for the Auto Scaling service-linked role.
Prevent → Coordinate KMS changes with the platform team and test PVC creation in staging first.
More on EKS-specific issues
A new engineer gets `error: You must be logged in to the server (Unauthorized)` on EKS even though their IAM role is in `aws-auth`.IntermediateAfter someone edited `aws-auth`, all nodes went `NotReady` and nobody except the cluster creator can use kubectl.AdvancedA managed node group fails with `NodeCreationFailure: Instances failed to join the kubernetes cluster`.IntermediatePods are stuck in ContainerCreating and the aws-node logs show `InsufficientFreeAddressesInSubnet` / `failed to assign an IP address to container`.AdvancedAfter enabling prefix delegation (`ENABLE_PREFIX_DELEGATION=true`), nodes still cap at 29 Pods.IntermediatePods on EKS fail to pull from ECR with `failed to resolve reference ... 401 Unauthorized` or `no basic auth credentials`.Intermediate