Skip to content

Commit

Permalink
feat(client-eks): Adds new error code Ec2InstanceTypeDoesNotExist f…
Browse files Browse the repository at this point in the history
…or Amazon EKS managed node groups
  • Loading branch information
awstools committed Nov 8, 2024
1 parent 90f0be2 commit 84db913
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion clients/client-eks/src/commands/CreateNodegroupCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export interface CreateNodegroupCommandOutput extends CreateNodegroupResponse, _
* // health: { // NodegroupHealth
* // issues: [ // IssueList
* // { // Issue
* // code: "AutoScalingGroupNotFound" || "AutoScalingGroupInvalidConfiguration" || "Ec2SecurityGroupNotFound" || "Ec2SecurityGroupDeletionFailure" || "Ec2LaunchTemplateNotFound" || "Ec2LaunchTemplateVersionMismatch" || "Ec2SubnetNotFound" || "Ec2SubnetInvalidConfiguration" || "IamInstanceProfileNotFound" || "Ec2SubnetMissingIpv6Assignment" || "IamLimitExceeded" || "IamNodeRoleNotFound" || "NodeCreationFailure" || "AsgInstanceLaunchFailures" || "InstanceLimitExceeded" || "InsufficientFreeAddresses" || "AccessDenied" || "InternalFailure" || "ClusterUnreachable" || "AmiIdNotFound" || "AutoScalingGroupOptInRequired" || "AutoScalingGroupRateLimitExceeded" || "Ec2LaunchTemplateDeletionFailure" || "Ec2LaunchTemplateInvalidConfiguration" || "Ec2LaunchTemplateMaxLimitExceeded" || "Ec2SubnetListTooLong" || "IamThrottling" || "NodeTerminationFailure" || "PodEvictionFailure" || "SourceEc2LaunchTemplateNotFound" || "LimitExceeded" || "Unknown" || "AutoScalingGroupInstanceRefreshActive" || "KubernetesLabelInvalid" || "Ec2LaunchTemplateVersionMaxLimitExceeded",
* // code: "AutoScalingGroupNotFound" || "AutoScalingGroupInvalidConfiguration" || "Ec2SecurityGroupNotFound" || "Ec2SecurityGroupDeletionFailure" || "Ec2LaunchTemplateNotFound" || "Ec2LaunchTemplateVersionMismatch" || "Ec2SubnetNotFound" || "Ec2SubnetInvalidConfiguration" || "IamInstanceProfileNotFound" || "Ec2SubnetMissingIpv6Assignment" || "IamLimitExceeded" || "IamNodeRoleNotFound" || "NodeCreationFailure" || "AsgInstanceLaunchFailures" || "InstanceLimitExceeded" || "InsufficientFreeAddresses" || "AccessDenied" || "InternalFailure" || "ClusterUnreachable" || "AmiIdNotFound" || "AutoScalingGroupOptInRequired" || "AutoScalingGroupRateLimitExceeded" || "Ec2LaunchTemplateDeletionFailure" || "Ec2LaunchTemplateInvalidConfiguration" || "Ec2LaunchTemplateMaxLimitExceeded" || "Ec2SubnetListTooLong" || "IamThrottling" || "NodeTerminationFailure" || "PodEvictionFailure" || "SourceEc2LaunchTemplateNotFound" || "LimitExceeded" || "Unknown" || "AutoScalingGroupInstanceRefreshActive" || "KubernetesLabelInvalid" || "Ec2LaunchTemplateVersionMaxLimitExceeded" || "Ec2InstanceTypeDoesNotExist",
* // message: "STRING_VALUE",
* // resourceIds: "<StringList>",
* // },
Expand Down
2 changes: 1 addition & 1 deletion clients/client-eks/src/commands/DeleteNodegroupCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export interface DeleteNodegroupCommandOutput extends DeleteNodegroupResponse, _
* // health: { // NodegroupHealth
* // issues: [ // IssueList
* // { // Issue
* // code: "AutoScalingGroupNotFound" || "AutoScalingGroupInvalidConfiguration" || "Ec2SecurityGroupNotFound" || "Ec2SecurityGroupDeletionFailure" || "Ec2LaunchTemplateNotFound" || "Ec2LaunchTemplateVersionMismatch" || "Ec2SubnetNotFound" || "Ec2SubnetInvalidConfiguration" || "IamInstanceProfileNotFound" || "Ec2SubnetMissingIpv6Assignment" || "IamLimitExceeded" || "IamNodeRoleNotFound" || "NodeCreationFailure" || "AsgInstanceLaunchFailures" || "InstanceLimitExceeded" || "InsufficientFreeAddresses" || "AccessDenied" || "InternalFailure" || "ClusterUnreachable" || "AmiIdNotFound" || "AutoScalingGroupOptInRequired" || "AutoScalingGroupRateLimitExceeded" || "Ec2LaunchTemplateDeletionFailure" || "Ec2LaunchTemplateInvalidConfiguration" || "Ec2LaunchTemplateMaxLimitExceeded" || "Ec2SubnetListTooLong" || "IamThrottling" || "NodeTerminationFailure" || "PodEvictionFailure" || "SourceEc2LaunchTemplateNotFound" || "LimitExceeded" || "Unknown" || "AutoScalingGroupInstanceRefreshActive" || "KubernetesLabelInvalid" || "Ec2LaunchTemplateVersionMaxLimitExceeded",
* // code: "AutoScalingGroupNotFound" || "AutoScalingGroupInvalidConfiguration" || "Ec2SecurityGroupNotFound" || "Ec2SecurityGroupDeletionFailure" || "Ec2LaunchTemplateNotFound" || "Ec2LaunchTemplateVersionMismatch" || "Ec2SubnetNotFound" || "Ec2SubnetInvalidConfiguration" || "IamInstanceProfileNotFound" || "Ec2SubnetMissingIpv6Assignment" || "IamLimitExceeded" || "IamNodeRoleNotFound" || "NodeCreationFailure" || "AsgInstanceLaunchFailures" || "InstanceLimitExceeded" || "InsufficientFreeAddresses" || "AccessDenied" || "InternalFailure" || "ClusterUnreachable" || "AmiIdNotFound" || "AutoScalingGroupOptInRequired" || "AutoScalingGroupRateLimitExceeded" || "Ec2LaunchTemplateDeletionFailure" || "Ec2LaunchTemplateInvalidConfiguration" || "Ec2LaunchTemplateMaxLimitExceeded" || "Ec2SubnetListTooLong" || "IamThrottling" || "NodeTerminationFailure" || "PodEvictionFailure" || "SourceEc2LaunchTemplateNotFound" || "LimitExceeded" || "Unknown" || "AutoScalingGroupInstanceRefreshActive" || "KubernetesLabelInvalid" || "Ec2LaunchTemplateVersionMaxLimitExceeded" || "Ec2InstanceTypeDoesNotExist",
* // message: "STRING_VALUE",
* // resourceIds: "<StringList>",
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export interface DescribeNodegroupCommandOutput extends DescribeNodegroupRespons
* // health: { // NodegroupHealth
* // issues: [ // IssueList
* // { // Issue
* // code: "AutoScalingGroupNotFound" || "AutoScalingGroupInvalidConfiguration" || "Ec2SecurityGroupNotFound" || "Ec2SecurityGroupDeletionFailure" || "Ec2LaunchTemplateNotFound" || "Ec2LaunchTemplateVersionMismatch" || "Ec2SubnetNotFound" || "Ec2SubnetInvalidConfiguration" || "IamInstanceProfileNotFound" || "Ec2SubnetMissingIpv6Assignment" || "IamLimitExceeded" || "IamNodeRoleNotFound" || "NodeCreationFailure" || "AsgInstanceLaunchFailures" || "InstanceLimitExceeded" || "InsufficientFreeAddresses" || "AccessDenied" || "InternalFailure" || "ClusterUnreachable" || "AmiIdNotFound" || "AutoScalingGroupOptInRequired" || "AutoScalingGroupRateLimitExceeded" || "Ec2LaunchTemplateDeletionFailure" || "Ec2LaunchTemplateInvalidConfiguration" || "Ec2LaunchTemplateMaxLimitExceeded" || "Ec2SubnetListTooLong" || "IamThrottling" || "NodeTerminationFailure" || "PodEvictionFailure" || "SourceEc2LaunchTemplateNotFound" || "LimitExceeded" || "Unknown" || "AutoScalingGroupInstanceRefreshActive" || "KubernetesLabelInvalid" || "Ec2LaunchTemplateVersionMaxLimitExceeded",
* // code: "AutoScalingGroupNotFound" || "AutoScalingGroupInvalidConfiguration" || "Ec2SecurityGroupNotFound" || "Ec2SecurityGroupDeletionFailure" || "Ec2LaunchTemplateNotFound" || "Ec2LaunchTemplateVersionMismatch" || "Ec2SubnetNotFound" || "Ec2SubnetInvalidConfiguration" || "IamInstanceProfileNotFound" || "Ec2SubnetMissingIpv6Assignment" || "IamLimitExceeded" || "IamNodeRoleNotFound" || "NodeCreationFailure" || "AsgInstanceLaunchFailures" || "InstanceLimitExceeded" || "InsufficientFreeAddresses" || "AccessDenied" || "InternalFailure" || "ClusterUnreachable" || "AmiIdNotFound" || "AutoScalingGroupOptInRequired" || "AutoScalingGroupRateLimitExceeded" || "Ec2LaunchTemplateDeletionFailure" || "Ec2LaunchTemplateInvalidConfiguration" || "Ec2LaunchTemplateMaxLimitExceeded" || "Ec2SubnetListTooLong" || "IamThrottling" || "NodeTerminationFailure" || "PodEvictionFailure" || "SourceEc2LaunchTemplateNotFound" || "LimitExceeded" || "Unknown" || "AutoScalingGroupInstanceRefreshActive" || "KubernetesLabelInvalid" || "Ec2LaunchTemplateVersionMaxLimitExceeded" || "Ec2InstanceTypeDoesNotExist",
* // message: "STRING_VALUE",
* // resourceIds: "<StringList>",
* // },
Expand Down
8 changes: 8 additions & 0 deletions clients/client-eks/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3537,6 +3537,7 @@ export const NodegroupIssueCode = {
AUTO_SCALING_GROUP_OPT_IN_REQUIRED: "AutoScalingGroupOptInRequired",
AUTO_SCALING_GROUP_RATE_LIMIT_EXCEEDED: "AutoScalingGroupRateLimitExceeded",
CLUSTER_UNREACHABLE: "ClusterUnreachable",
EC2_INSTANCE_TYPE_DOES_NOT_EXIST: "Ec2InstanceTypeDoesNotExist",
EC2_LAUNCH_TEMPLATE_DELETION_FAILURE: "Ec2LaunchTemplateDeletionFailure",
EC2_LAUNCH_TEMPLATE_INVALID_CONFIGURATION: "Ec2LaunchTemplateInvalidConfiguration",
EC2_LAUNCH_TEMPLATE_MAX_LIMIT_EXCEEDED: "Ec2LaunchTemplateMaxLimitExceeded",
Expand Down Expand Up @@ -3605,6 +3606,13 @@ export interface Issue {
* </li>
* <li>
* <p>
* <b>Ec2InstanceTypeDoesNotExist</b>: One or more of
* the supplied Amazon EC2 instance types do not exist. Amazon EKS checked for the
* instance types that you provided in this Amazon Web Services Region, and one or more aren't
* available.</p>
* </li>
* <li>
* <p>
* <b>Ec2LaunchTemplateNotFound</b>: We couldn't find
* the Amazon EC2 launch template for your managed node group. You may be
* able to recreate a launch template with the same settings to recover.</p>
Expand Down
8 changes: 7 additions & 1 deletion codegen/sdk-codegen/aws-models/eks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6787,7 +6787,7 @@
"code": {
"target": "com.amazonaws.eks#NodegroupIssueCode",
"traits": {
"smithy.api#documentation": "<p>A brief description of the error.</p>\n <ul>\n <li>\n <p>\n <b>AccessDenied</b>: Amazon EKS or one or\n more of your managed nodes is failing to authenticate or authorize with your\n Kubernetes cluster API server.</p>\n </li>\n <li>\n <p>\n <b>AsgInstanceLaunchFailures</b>: Your Auto Scaling group is experiencing failures while attempting to launch\n instances.</p>\n </li>\n <li>\n <p>\n <b>AutoScalingGroupNotFound</b>: We couldn't find\n the Auto Scaling group associated with the managed node group. You may be\n able to recreate an Auto Scaling group with the same settings to\n recover.</p>\n </li>\n <li>\n <p>\n <b>ClusterUnreachable</b>: Amazon EKS or one\n or more of your managed nodes is unable to to communicate with your Kubernetes\n cluster API server. This can happen if there are network disruptions or if API\n servers are timing out processing requests. </p>\n </li>\n <li>\n <p>\n <b>Ec2LaunchTemplateNotFound</b>: We couldn't find\n the Amazon EC2 launch template for your managed node group. You may be\n able to recreate a launch template with the same settings to recover.</p>\n </li>\n <li>\n <p>\n <b>Ec2LaunchTemplateVersionMismatch</b>: The Amazon EC2 launch template version for your managed node group does not\n match the version that Amazon EKS created. You may be able to revert to\n the version that Amazon EKS created to recover.</p>\n </li>\n <li>\n <p>\n <b>Ec2SecurityGroupDeletionFailure</b>: We could not\n delete the remote access security group for your managed node group. Remove any\n dependencies from the security group.</p>\n </li>\n <li>\n <p>\n <b>Ec2SecurityGroupNotFound</b>: We couldn't find\n the cluster security group for the cluster. You must recreate your\n cluster.</p>\n </li>\n <li>\n <p>\n <b>Ec2SubnetInvalidConfiguration</b>: One or more\n Amazon EC2 subnets specified for a node group do not automatically\n assign public IP addresses to instances launched into it. If you want your\n instances to be assigned a public IP address, then you need to enable the\n <code>auto-assign public IP address</code> setting for the subnet. See\n <a href=\"https://docs.aws.amazon.com/vpc/latest/userguide/vpc-ip-addressing.html#subnet-public-ip\">Modifying\n the public <code>IPv4</code> addressing attribute for your subnet</a> in\n the <i>Amazon VPC User Guide</i>.</p>\n </li>\n <li>\n <p>\n <b>IamInstanceProfileNotFound</b>: We couldn't find\n the IAM instance profile for your managed node group. You may be\n able to recreate an instance profile with the same settings to recover.</p>\n </li>\n <li>\n <p>\n <b>IamNodeRoleNotFound</b>: We couldn't find the\n IAM role for your managed node group. You may be able to\n recreate an IAM role with the same settings to recover.</p>\n </li>\n <li>\n <p>\n <b>InstanceLimitExceeded</b>: Your Amazon Web Services account is unable to launch any more instances of the specified instance\n type. You may be able to request an Amazon EC2 instance limit increase\n to recover.</p>\n </li>\n <li>\n <p>\n <b>InsufficientFreeAddresses</b>: One or more of the\n subnets associated with your managed node group does not have enough available\n IP addresses for new nodes.</p>\n </li>\n <li>\n <p>\n <b>InternalFailure</b>: These errors are usually\n caused by an Amazon EKS server-side issue.</p>\n </li>\n <li>\n <p>\n <b>NodeCreationFailure</b>: Your launched instances\n are unable to register with your Amazon EKS cluster. Common causes of\n this failure are insufficient <a href=\"https://docs.aws.amazon.com/eks/latest/userguide/create-node-role.html\">node IAM\n role</a> permissions or lack of outbound internet access for the nodes.\n </p>\n </li>\n </ul>"
"smithy.api#documentation": "<p>A brief description of the error.</p>\n <ul>\n <li>\n <p>\n <b>AccessDenied</b>: Amazon EKS or one or\n more of your managed nodes is failing to authenticate or authorize with your\n Kubernetes cluster API server.</p>\n </li>\n <li>\n <p>\n <b>AsgInstanceLaunchFailures</b>: Your Auto Scaling group is experiencing failures while attempting to launch\n instances.</p>\n </li>\n <li>\n <p>\n <b>AutoScalingGroupNotFound</b>: We couldn't find\n the Auto Scaling group associated with the managed node group. You may be\n able to recreate an Auto Scaling group with the same settings to\n recover.</p>\n </li>\n <li>\n <p>\n <b>ClusterUnreachable</b>: Amazon EKS or one\n or more of your managed nodes is unable to to communicate with your Kubernetes\n cluster API server. This can happen if there are network disruptions or if API\n servers are timing out processing requests. </p>\n </li>\n <li>\n <p>\n <b>Ec2InstanceTypeDoesNotExist</b>: One or more of\n the supplied Amazon EC2 instance types do not exist. Amazon EKS checked for the\n instance types that you provided in this Amazon Web Services Region, and one or more aren't\n available.</p>\n </li>\n <li>\n <p>\n <b>Ec2LaunchTemplateNotFound</b>: We couldn't find\n the Amazon EC2 launch template for your managed node group. You may be\n able to recreate a launch template with the same settings to recover.</p>\n </li>\n <li>\n <p>\n <b>Ec2LaunchTemplateVersionMismatch</b>: The Amazon EC2 launch template version for your managed node group does not\n match the version that Amazon EKS created. You may be able to revert to\n the version that Amazon EKS created to recover.</p>\n </li>\n <li>\n <p>\n <b>Ec2SecurityGroupDeletionFailure</b>: We could not\n delete the remote access security group for your managed node group. Remove any\n dependencies from the security group.</p>\n </li>\n <li>\n <p>\n <b>Ec2SecurityGroupNotFound</b>: We couldn't find\n the cluster security group for the cluster. You must recreate your\n cluster.</p>\n </li>\n <li>\n <p>\n <b>Ec2SubnetInvalidConfiguration</b>: One or more\n Amazon EC2 subnets specified for a node group do not automatically\n assign public IP addresses to instances launched into it. If you want your\n instances to be assigned a public IP address, then you need to enable the\n <code>auto-assign public IP address</code> setting for the subnet. See\n <a href=\"https://docs.aws.amazon.com/vpc/latest/userguide/vpc-ip-addressing.html#subnet-public-ip\">Modifying\n the public <code>IPv4</code> addressing attribute for your subnet</a> in\n the <i>Amazon VPC User Guide</i>.</p>\n </li>\n <li>\n <p>\n <b>IamInstanceProfileNotFound</b>: We couldn't find\n the IAM instance profile for your managed node group. You may be\n able to recreate an instance profile with the same settings to recover.</p>\n </li>\n <li>\n <p>\n <b>IamNodeRoleNotFound</b>: We couldn't find the\n IAM role for your managed node group. You may be able to\n recreate an IAM role with the same settings to recover.</p>\n </li>\n <li>\n <p>\n <b>InstanceLimitExceeded</b>: Your Amazon Web Services account is unable to launch any more instances of the specified instance\n type. You may be able to request an Amazon EC2 instance limit increase\n to recover.</p>\n </li>\n <li>\n <p>\n <b>InsufficientFreeAddresses</b>: One or more of the\n subnets associated with your managed node group does not have enough available\n IP addresses for new nodes.</p>\n </li>\n <li>\n <p>\n <b>InternalFailure</b>: These errors are usually\n caused by an Amazon EKS server-side issue.</p>\n </li>\n <li>\n <p>\n <b>NodeCreationFailure</b>: Your launched instances\n are unable to register with your Amazon EKS cluster. Common causes of\n this failure are insufficient <a href=\"https://docs.aws.amazon.com/eks/latest/userguide/create-node-role.html\">node IAM\n role</a> permissions or lack of outbound internet access for the nodes.\n </p>\n </li>\n </ul>"
}
},
"message": {
Expand Down Expand Up @@ -8625,6 +8625,12 @@
"traits": {
"smithy.api#enumValue": "Ec2LaunchTemplateVersionMaxLimitExceeded"
}
},
"EC2_INSTANCE_TYPE_DOES_NOT_EXIST": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "Ec2InstanceTypeDoesNotExist"
}
}
}
},
Expand Down

0 comments on commit 84db913

Please sign in to comment.