{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-eks/json-schema/amazon-eks-create-nodegroup-request-schema.json",
  "title": "CreateNodegroupRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-eks-node-groups-api-openapi.yml#/components/schemas/CreateNodegroupRequest",
  "type": "object",
  "properties": {
    "clusterName": {
      "type": "string",
      "description": "The name of your cluster."
    },
    "nodegroupName": {
      "type": "string",
      "description": "The unique name to give your node group."
    },
    "scalingConfig": {
      "$ref": "#/$defs/NodegroupScalingConfig"
    },
    "diskSize": {
      "type": "integer",
      "description": "The root device disk size (in GiB) for your node group instances. The default disk size is 20 GiB for Linux and Bottlerocket. The default disk size is 50 GiB for Windows. If you specify launchTemplate, then don't specify diskSize, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Customizing managed nodes with launch templates in the Amazon EKS User Guide."
    },
    "subnets": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The subnets to use for the Auto Scaling group that is created for your node group. If you specify launchTemplate, then don't specify SubnetId in your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Customizing managed nodes with launch templates in the Amazon EKS User Guide."
    },
    "instanceTypes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Specify the instance types for a node group. If you specify a GPU instance type, make sure to also specify an applicable GPU AMI type with the amiType parameter. If you specify launchTemplate, then you can specify zero or one instance type in your launch template or you can specify 0-20 instance types for instanceTypes. If however, you specify an instance type in your launch template and specify any instanceTypes, the node group deployment will fail. If you don't specify an instance type in a launch template or for instanceTypes, then t3.medium is used, by default. If you specify Spot for capa"
    },
    "amiType": {
      "type": "string",
      "enum": [
        "AL2_x86_64",
        "AL2_x86_64_GPU",
        "AL2_ARM_64",
        "CUSTOM",
        "BOTTLEROCKET_ARM_64",
        "BOTTLEROCKET_x86_64",
        "BOTTLEROCKET_ARM_64_FIPS",
        "BOTTLEROCKET_x86_64_FIPS",
        "BOTTLEROCKET_ARM_64_NVIDIA",
        "BOTTLEROCKET_x86_64_NVIDIA",
        "BOTTLEROCKET_ARM_64_NVIDIA_FIPS",
        "BOTTLEROCKET_x86_64_NVIDIA_FIPS",
        "WINDOWS_CORE_2019_x86_64",
        "WINDOWS_FULL_2019_x86_64",
        "WINDOWS_CORE_2022_x86_64",
        "WINDOWS_FULL_2022_x86_64",
        "WINDOWS_CORE_2025_x86_64",
        "WINDOWS_FULL_2025_x86_64",
        "AL2023_x86_64_STANDARD",
        "AL2023_ARM_64_STANDARD",
        "AL2023_x86_64_NEURON",
        "AL2023_x86_64_NVIDIA",
        "AL2023_ARM_64_NVIDIA"
      ],
      "description": "The AMI type for your node group. If you specify launchTemplate, and your launch template uses a custom AMI, then don't specify amiType, or the node group deployment will fail. If your launch template uses a Windows custom AMI, then add eks:kube-proxy-windows to your Windows nodes rolearn in the aws-auth ConfigMap. For more information about using launch templates with Amazon EKS, see Customizing managed nodes with launch templates in the Amazon EKS User Guide."
    },
    "remoteAccess": {
      "$ref": "#/$defs/RemoteAccessConfig"
    },
    "nodeRole": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the IAM role to associate with your node group. The Amazon EKS worker node kubelet daemon makes calls to Amazon Web Services APIs on your behalf. Nodes receive permissions for these API calls through an IAM instance profile and associated policies. Before you can launch nodes and register them into a cluster, you must create an IAM role for those nodes to use when they are launched. For more information, see Amazon EKS node IAM role in the Amazon EKS User Guide . If you specify launchTemplate, then don't specify IamInstanceProfile in your launch template, or t"
    },
    "labels": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The Kubernetes labels to apply to the nodes in the node group when they are created."
    },
    "taints": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Taint"
      },
      "description": "The Kubernetes taints to be applied to the nodes in the node group. For more information, see Node taints on managed node groups."
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources."
    },
    "clientRequestToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request."
    },
    "launchTemplate": {
      "$ref": "#/$defs/LaunchTemplateSpecification"
    },
    "updateConfig": {
      "$ref": "#/$defs/NodegroupUpdateConfig"
    },
    "nodeRepairConfig": {
      "$ref": "#/$defs/NodeRepairConfig"
    },
    "capacityType": {
      "type": "string",
      "enum": [
        "ON_DEMAND",
        "SPOT",
        "CAPACITY_BLOCK"
      ],
      "description": "The capacity type for your node group."
    },
    "version": {
      "type": "string",
      "description": "The Kubernetes version to use for your managed nodes. By default, the Kubernetes version of the cluster is used, and this is the only accepted specified value. If you specify launchTemplate, and your launch template uses a custom AMI, then don't specify version, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Customizing managed nodes with launch templates in the Amazon EKS User Guide."
    },
    "releaseVersion": {
      "type": "string",
      "description": "The AMI version of the Amazon EKS optimized AMI to use with your node group. By default, the latest available AMI version for the node group's current Kubernetes version is used. For information about Linux versions, see Amazon EKS optimized Amazon Linux AMI versions in the Amazon EKS User Guide. Amazon EKS managed node groups support the November 2022 and later releases of the Windows AMIs. For information about Windows versions, see Amazon EKS optimized Windows AMI versions in the Amazon EKS User Guide. If you specify launchTemplate, and your launch template uses a custom AMI, then don't spe"
    },
    "warmPoolConfig": {
      "$ref": "#/$defs/WarmPoolConfig"
    }
  },
  "required": [
    "clusterName",
    "nodegroupName",
    "subnets",
    "nodeRole"
  ],
  "$defs": {
    "LaunchTemplateSpecification": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the launch template. You must specify either the launch template name or the launch template ID in the request, but not both. After node group creation, you cannot use a different name."
        },
        "version": {
          "type": "string",
          "description": "The version number of the launch template to use. If no version is specified, then the template's default version is used. You can use a different version for node group updates."
        },
        "id": {
          "type": "string",
          "description": "The ID of the launch template. You must specify either the launch template ID or the launch template name in the request, but not both. After node group creation, you cannot use a different ID."
        }
      }
    },
    "NodeRepairConfig": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Specifies whether to enable node auto repair for the node group. Node auto repair is disabled by default."
        },
        "maxUnhealthyNodeThresholdCount": {
          "type": "integer",
          "description": "Specify a count threshold of unhealthy nodes, above which node auto repair actions will stop. When using this, you cannot also set maxUnhealthyNodeThresholdPercentage at the same time."
        },
        "maxUnhealthyNodeThresholdPercentage": {
          "type": "integer",
          "description": "Specify a percentage threshold of unhealthy nodes, above which node auto repair actions will stop. When using this, you cannot also set maxUnhealthyNodeThresholdCount at the same time."
        },
        "maxParallelNodesRepairedCount": {
          "type": "integer",
          "description": "Specify the maximum number of nodes that can be repaired concurrently or in parallel, expressed as a count of unhealthy nodes. This gives you finer-grained control over the pace of node replacements. When using this, you cannot also set maxParallelNodesRepairedPercentage at the same time."
        },
        "maxParallelNodesRepairedPercentage": {
          "type": "integer",
          "description": "Specify the maximum number of nodes that can be repaired concurrently or in parallel, expressed as a percentage of unhealthy nodes. This gives you finer-grained control over the pace of node replacements. When using this, you cannot also set maxParallelNodesRepairedCount at the same time."
        },
        "nodeRepairConfigOverrides": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NodeRepairConfigOverrides"
          },
          "description": "Specify granular overrides for specific repair actions. These overrides control the repair action and the repair delay time before a node is considered eligible for repair. If you use this, you must specify all the values."
        }
      }
    },
    "NodeRepairConfigOverrides": {
      "type": "object",
      "properties": {
        "nodeMonitoringCondition": {
          "type": "string",
          "description": "Specify an unhealthy condition reported by the node monitoring agent that this override would apply to."
        },
        "nodeUnhealthyReason": {
          "type": "string",
          "description": "Specify a reason reported by the node monitoring agent that this override would apply to."
        },
        "minRepairWaitTimeMins": {
          "type": "integer",
          "description": "Specify the minimum time in minutes to wait before attempting to repair a node with this specific nodeMonitoringCondition and nodeUnhealthyReason."
        },
        "repairAction": {
          "type": "string",
          "enum": [
            "Replace",
            "Reboot",
            "NoAction"
          ],
          "description": "Specify the repair action to take for nodes when all of the specified conditions are met."
        }
      }
    },
    "NodegroupScalingConfig": {
      "type": "object",
      "properties": {
        "minSize": {
          "type": "integer",
          "description": "The minimum number of nodes that the managed node group can scale in to."
        },
        "maxSize": {
          "type": "integer",
          "description": "The maximum number of nodes that the managed node group can scale out to. For information about the maximum number that you can specify, see Amazon EKS service quotas in the Amazon EKS User Guide."
        },
        "desiredSize": {
          "type": "integer",
          "description": "The current number of nodes that the managed node group should maintain. If you use the Kubernetes Cluster Autoscaler, you shouldn't change the desiredSize value directly, as this can cause the Cluster Autoscaler to suddenly scale up or scale down. Whenever this parameter changes, the number of worker nodes in the node group is updated to the specified size. If this parameter is given a value that is smaller than the current number of running worker nodes, the necessary number of worker nodes are terminated to match the given value. When using CloudFormation, no action occurs if you remove thi"
        }
      }
    },
    "NodegroupUpdateConfig": {
      "type": "object",
      "properties": {
        "maxUnavailable": {
          "type": "integer",
          "description": "The maximum number of nodes unavailable at once during a version update. Nodes are updated in parallel. This value or maxUnavailablePercentage is required to have a value.The maximum number is 100."
        },
        "maxUnavailablePercentage": {
          "type": "integer",
          "description": "The maximum percentage of nodes unavailable during a version update. This percentage of nodes are updated in parallel, up to 100 nodes at once. This value or maxUnavailable is required to have a value."
        },
        "updateStrategy": {
          "type": "string",
          "enum": [
            "DEFAULT",
            "MINIMAL"
          ],
          "description": "The configuration for the behavior to follow during a node group version update of this managed node group. You choose between two possible strategies for replacing nodes during an UpdateNodegroupVersion action. An Amazon EKS managed node group updates by replacing nodes with new nodes of newer AMI versions in parallel. The update strategy changes the managed node update behavior of the managed node group for each quantity. The default strategy has guardrails to protect you from misconfiguration and launches the new instances first, before terminating the old instances. The minimal strategy re"
        }
      }
    },
    "RemoteAccessConfig": {
      "type": "object",
      "properties": {
        "ec2SshKey": {
          "type": "string",
          "description": "The Amazon EC2 SSH key name that provides access for SSH communication with the nodes in the managed node group. For more information, see Amazon EC2 key pairs and Linux instances in the Amazon Elastic Compute Cloud User Guide for Linux Instances. For Windows, an Amazon EC2 SSH key is used to obtain the RDP password. For more information, see Amazon EC2 key pairs and Windows instances in the Amazon Elastic Compute Cloud User Guide for Windows Instances."
        },
        "sourceSecurityGroups": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The security group IDs that are allowed SSH access (port 22) to the nodes. For Windows, the port is 3389. If you specify an Amazon EC2 SSH key but don't specify a source security group when you create a managed node group, then the port on the nodes is opened to the internet (0.0.0.0/0). For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide."
        }
      }
    },
    "Taint": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The key of the taint."
        },
        "value": {
          "type": "string",
          "description": "The value of the taint."
        },
        "effect": {
          "type": "string",
          "enum": [
            "NO_SCHEDULE",
            "NO_EXECUTE",
            "PREFER_NO_SCHEDULE"
          ],
          "description": "The effect of the taint."
        }
      }
    },
    "WarmPoolConfig": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Specifies whether to attach warm pools on the managed node group. Set to true to enable the warm pool, or false to disable and remove it. If not specified during an update, the current value is preserved."
        },
        "minSize": {
          "type": "integer",
          "description": "The minimum number of instances to maintain in the warm pool. Default: 0. Size your warm pool based on scaling patterns to balance cost and availability. Start with 10-20% of expected peak capacity."
        },
        "maxGroupPreparedCapacity": {
          "type": "integer",
          "description": "The maximum total number of instances across the warm pool and Auto Scaling group combined. This value controls the total prepared capacity available for your node group."
        },
        "poolState": {
          "type": "string",
          "enum": [
            "STOPPED",
            "RUNNING",
            "HIBERNATED"
          ],
          "description": "The desired state for warm pool instances. Default: Stopped. Valid values are Stopped (most cost-effective with EBS storage costs only), Running (fastest transition time with full EC2 costs), and Hibernated (balance between cost and speed, only supported on specific instance types). Warm pool instances in the Hibernated state are not supported with Bottlerocket AMIs."
        },
        "reuseOnScaleIn": {
          "type": "boolean",
          "description": "Indicates whether instances should return to the warm pool during scale-in events instead of being terminated. Default: false. Enable this to reduce costs by reusing instances. This feature is not supported for Bottlerocket AMIs."
        }
      }
    }
  }
}