kubernetes/kops · error
describing instance type %q in region %q: %w
Error message
describing instance type %q in region %q: %w
What it means
Error "describing instance type %q in region %q: %w" thrown in kubernetes/kops.
Source
Thrown at upup/pkg/fi/nodeup/awsup/machine_types.go:48
GPU bool
InstanceENIs int32
InstanceIPsPerENI int32
}
// GetMachineTypeInfo calls ec2.DescribeInstanceTypes to get information for a particular instance type, caching the result.
func (c *Cloud) GetMachineTypeInfo(ctx context.Context, machineType ec2types.InstanceType) (*MachineTypeInfo, error) {
clients.mutex.Lock()
defer clients.mutex.Unlock()
if info, ok := clients.machineTypes[machineType]; ok {
return info, nil
}
resp, err := clients.ec2.DescribeInstanceTypes(ctx, &ec2.DescribeInstanceTypesInput{
InstanceTypes: []ec2types.InstanceType{machineType},
})
if err != nil {
return nil, fmt.Errorf("describing instance type %q in region %q: %w", machineType, c.region, err)
}
if len(resp.InstanceTypes) != 1 {
return nil, fmt.Errorf("instance type %q not found in region %q", machineType, c.region)
}
info := resp.InstanceTypes[0]
machine := &MachineTypeInfo{
GPU: info.GpuInfo != nil,
InstanceENIs: aws.ToInt32(info.NetworkInfo.MaximumNetworkInterfaces),
InstanceIPsPerENI: aws.ToInt32(info.NetworkInfo.Ipv4AddressesPerInterface),
}
if clients.machineTypes == nil {
clients.machineTypes = make(map[ec2types.InstanceType]*MachineTypeInfo)
}
clients.machineTypes[machineType] = machine
return machine, nilView on GitHub (pinned to 4c8573c808)
When it happens
Trigger: Thrown at upup/pkg/fi/nodeup/awsup/machine_types.go:48 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of kubernetes/kops@4c8573c808 (2026-09-05).
Data as JSON: /api/errors/1239592e859d955a.
Report an issue: GitHub.