{"record":{"id":"29e0ea6d1f0ba9cb","repo":"kubernetes/kops","slug":"error-getting-cloud-instance-group-q-v","errorCode":null,"errorMessage":"error getting cloud instance group %q: %v","messagePattern":"error getting cloud instance group %q: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/awsup/aws_cloud.go","lineNumber":817,"sourceCode":"\t}\n\n\tfor _, asg := range asgs {\n\t\tname := aws.ToString(asg.AutoScalingGroupName)\n\n\t\tinstancegroup, err := matchInstanceGroup(name, cluster.ObjectMeta.Name, instancegroups)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"error getting instance group for ASG %q\", name)\n\t\t}\n\t\tif instancegroup == nil {\n\t\t\tif warnUnmatched {\n\t\t\t\tklog.Warningf(\"Found ASG with no corresponding instance group %q\", name)\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\n\t\tgroups[instancegroup.ObjectMeta.Name], err = awsBuildCloudInstanceGroup(ctx, c, cluster, instancegroup, asg, nodeMap)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"error getting cloud instance group %q: %v\", instancegroup.ObjectMeta.Name, err)\n\t\t}\n\t}\n\n\treturn groups, nil\n}\n\n// FindAutoscalingGroups finds autoscaling groups matching the specified tags\n// This isn't entirely trivial because autoscaling doesn't let us filter with as much precision as we would like\nfunc FindAutoscalingGroups(c AWSCloud, tags map[string]string) ([]*autoscalingtypes.AutoScalingGroup, error) {\n\tctx := context.TODO()\n\n\tvar asgs []*autoscalingtypes.AutoScalingGroup\n\n\tklog.V(2).Infof(\"Listing all Autoscaling groups matching cluster tags\")\n\tvar asgNames []string\n\t{\n\t\tvar asFilters []autoscalingtypes.Filter\n\t\tfor _, v := range tags {","sourceCodeStart":799,"sourceCodeEnd":835,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/awsup/aws_cloud.go#L799-L835","documentation":"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.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/awsup/aws_cloud.go:817 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T07:17:12.445Z"}