actionEKS

create_cluster

Create a new EKS cluster

Activity as code

Below are the details and signature of the activity Python module.

Typeaction
Modulechaosaws.eks.actions
Namecreate_cluster
Returnmapping

Usage

JSON

{
  "name": "create-cluster",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosaws.eks.actions",
    "func": "create_cluster",
    "arguments": {
      "name": "",
      "role_arn": "",
      "vpc_config": {}
    }
  }
}

YAML

name: create-cluster
provider:
  arguments:
    name: ""
    role_arn: ""
    vpc_config: {}
  func: create_cluster
  module: chaosaws.eks.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
namestringYesCluster Name
role_arnstringYesRole ARN
vpc_configmappingYesVPC Config
versionstringnullNoVersion

Signature

def create_cluster(
        name: str,
        role_arn: str,
        vpc_config: Dict[str, Any],
        version: str = None,
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass