Issue While Installing EBS CSI Driver Add‑on on EKS – IAM PassRole Error

a { text-decoration: none; color: #464feb; } tr th, tr td { border: 1px solid #e6e6e6; } tr th { background-color: #f5f5f5; }

am facing an issue while following the lab steps to install the AWS EBS CSI Driver add‑on on an EKS cluster. When I run the aws eks create-addon command with the service account role ARN, I receive the following,

a { text-decoration: none; color: #464feb; } tr th, tr td { border: 1px solid #e6e6e6; } tr th { background-color: #f5f5f5; }

The error indicates that the IAM user being used does not have permission to pass the IAM role required for the EBS CSI Driver.

Is this part of a lab in a course? If so, can you please share the lab details?

Course | KodeKloud,
i believe this is part of the basic learning for eks, such as creating and installing the csi driver. . please provide the steps to practice this or explain how to update or override the iam permissions.

not 100% sure but i think that creating addons in the labs is disabled due to CSP policies, please correct me if im wrong.
I have managed to add addons via terraform for example

resource "aws_eks_addon" "ebs_csi" {
  cluster_name = var.cluster_name
  addon_name   = "aws-ebs-csi-driver"
  resolve_conflicts_on_create = "OVERWRITE"

  depends_on = [module.eks]
}

This esentially works, however it will timeout your terraform deployment since the addon cannot register to worker nodes untill the nodes are registered to the cluster. But it will deploy the pods/controller for the ebs addon. After you register the worker nodes to the cluster addon will work