{"record":{"id":"c36ab0e0a501b543","repo":"kubernetes/kops","slug":"unable-to-find-autoscale-groups-v","errorCode":null,"errorMessage":"unable to find autoscale groups: %v","messagePattern":"unable to find autoscale groups: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/awsup/aws_cloud.go","lineNumber":798,"sourceCode":"\t\tfor _, r := range result.Reservations {\n\t\t\tfor _, i := range r.Instances {\n\t\t\t\tid := aws.ToString(i.InstanceId)\n\t\t\t\tcloudInstance, _ := karpenterGroup.NewCloudInstance(aws.ToString(i.InstanceId), cloudinstances.CloudInstanceStatusUpToDate, nodeMap[id])\n\t\t\t\taddCloudInstanceData(cloudInstance, &i)\n\t\t\t}\n\t\t}\n\t}\n\n\treturn karpenterGroup, nil\n}\n\nfunc getCloudGroups(ctx context.Context, c AWSCloud, cluster *kops.Cluster, instancegroups []*kops.InstanceGroup, warnUnmatched bool, nodes []v1.Node) (map[string]*cloudinstances.CloudInstanceGroup, error) {\n\tnodeMap := cloudinstances.GetNodeMap(nodes, cluster)\n\n\tgroups := make(map[string]*cloudinstances.CloudInstanceGroup)\n\tasgs, err := FindAutoscalingGroups(c, c.Tags())\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"unable to find autoscale groups: %v\", err)\n\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 {","sourceCodeStart":780,"sourceCodeEnd":816,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/awsup/aws_cloud.go#L780-L816","documentation":"FindAutoscalingGroups (an autoscaling DescribeTags/DescribeAutoScalingGroups lookup filtered by cluster tags) failed while getCloudGroups was building the cloud instance group map. It fires when the AWS Autoscaling API returns an error or the credentials lack autoscaling:DescribeTags/DescribeAutoScalingGroups permissions.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/awsup/aws_cloud.go:798 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify AWS credentials and that the IAM user/role has autoscaling:DescribeTags and autoscaling:DescribeAutoScalingGroups permissions","Check AWS service health and retry the kops operation; Describe calls are read-only and safe to re-run","Inspect the wrapped %v error for throttling (RequestLimitExceeded) and back off before retrying"],"exampleFix":null,"handlingStrategy":"retry","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-12T12:17:11.808Z"}