kubernetes/kops · error
error getting cloud instance group %q: %v
Error message
error getting cloud instance group %q: %v
What it means
awsBuildCloudInstanceGroup failed while building the CloudInstanceGroup for one instance group; the wrapped error typically comes from resolving the ASG launch configuration/template or describing its EC2 instances. The instance group named by %q is the one that could not be built.
Source
Thrown at upup/pkg/fi/cloudup/awsup/aws_cloud.go:817
}
for _, asg := range asgs {
name := aws.ToString(asg.AutoScalingGroupName)
instancegroup, err := matchInstanceGroup(name, cluster.ObjectMeta.Name, instancegroups)
if err != nil {
return nil, fmt.Errorf("error getting instance group for ASG %q", name)
}
if instancegroup == nil {
if warnUnmatched {
klog.Warningf("Found ASG with no corresponding instance group %q", name)
}
continue
}
groups[instancegroup.ObjectMeta.Name], err = awsBuildCloudInstanceGroup(ctx, c, cluster, instancegroup, asg, nodeMap)
if err != nil {
return nil, fmt.Errorf("error getting cloud instance group %q: %v", instancegroup.ObjectMeta.Name, err)
}
}
return groups, nil
}
// FindAutoscalingGroups finds autoscaling groups matching the specified tags
// This isn't entirely trivial because autoscaling doesn't let us filter with as much precision as we would like
func FindAutoscalingGroups(c AWSCloud, tags map[string]string) ([]*autoscalingtypes.AutoScalingGroup, error) {
ctx := context.TODO()
var asgs []*autoscalingtypes.AutoScalingGroup
klog.V(2).Infof("Listing all Autoscaling groups matching cluster tags")
var asgNames []string
{
var asFilters []autoscalingtypes.Filter
for _, v := range tags {View on GitHub (pinned to 4c8573c808)
Solutions
- Inspect the wrapped %v error to identify the failing AWS call (launch template lookup, DescribeInstances, etc.)
- Verify the ASG's launch configuration/launch template still exists and is readable by the credentials
- Re-run the kops operation after fixing the underlying AWS-side issue; the lookup is read-only
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at upup/pkg/fi/cloudup/awsup/aws_cloud.go:817 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/29e0ea6d1f0ba9cb.
Report an issue: GitHub.