Skip to content

EKS cluster creation fails unless IAM role 'cloud-barista-spider-eks-cluster-role' is manually created in AWS #2191

@Jeon-Jinhyeok

Description

@Jeon-Jinhyeok

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions