What happened
: When I tried to create an AWS EKS cluster through CB-Tumblebug, the cluster creation failed with the following error:
failed to create K8sCluster dynamically error="NoSuchEntity:
The role with name cloud-barista-spider-eks-cluster-role cannot be found. status code: 404,
request id: 2f4d0816-cadd-40bd-9f9e-06ecda6af086
(from cb-spider:1024/spider/cluster (500 Internal Server Error))"
To proceded, I had to manually create the required AWS IAM role in the AWS console:
- In IAM -> Roles -> Create role:
- Select EKS - Cluster as the trusted entity type (AWS service).
- Set the role name explicitly to
cloud-barista-spider-eks-cluster-role
Environment
- Source version or branch: cb-tumblebug: 0.11.15, cb-spider: 0.11.15
- OS: Ubuntu 22.04
- Cloud provider: AWS
Proposed solution
: Add logic so the system automatically creates the required AWS IAM roles (both the EKS control plane role and the worker node role) in AWS if they are missing.
What happened
: When I tried to create an AWS EKS cluster through CB-Tumblebug, the cluster creation failed with the following error:
To proceded, I had to manually create the required AWS IAM role in the AWS console:
cloud-barista-spider-eks-cluster-roleEnvironment
Proposed solution
: Add logic so the system automatically creates the required AWS IAM roles (both the EKS control plane role and the worker node role) in AWS if they are missing.