{"record":{"id":"58aa580c50c9b4f9","repo":"kubernetes/kops","slug":"error-listing-autoscaling-cluster-tags-v","errorCode":null,"errorMessage":"error listing autoscaling cluster tags: %v","messagePattern":"error listing autoscaling cluster tags: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/awsup/aws_cloud.go","lineNumber":850,"sourceCode":"\tvar asgNames []string\n\t{\n\t\tvar asFilters []autoscalingtypes.Filter\n\t\tfor _, v := range tags {\n\t\t\t// Not an exact match, but likely the best we can do\n\t\t\tasFilters = append(asFilters, autoscalingtypes.Filter{\n\t\t\t\tName:   aws.String(\"value\"),\n\t\t\t\tValues: []string{v},\n\t\t\t})\n\t\t}\n\t\trequest := &autoscaling.DescribeTagsInput{\n\t\t\tFilters: asFilters,\n\t\t}\n\n\t\tpaginator := autoscaling.NewDescribeTagsPaginator(c.Autoscaling(), request)\n\t\tfor paginator.HasMorePages() {\n\t\t\tpage, err := paginator.NextPage(ctx)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"error listing autoscaling cluster tags: %v\", err)\n\t\t\t}\n\t\t\tfor _, t := range page.Tags {\n\t\t\t\tswitch *t.ResourceType {\n\t\t\t\tcase \"auto-scaling-group\":\n\t\t\t\t\tasgNames = append(asgNames, aws.ToString(t.ResourceId))\n\t\t\t\tdefault:\n\t\t\t\t\tklog.Warningf(\"Unknown resource type: %v\", *t.ResourceType)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tif len(asgNames) != 0 {\n\t\tfor i := 0; i < len(asgNames); i += 50 {\n\t\t\tbatch := asgNames[i:minInt(i+50, len(asgNames))]\n\t\t\trequest := &autoscaling.DescribeAutoScalingGroupsInput{\n\t\t\t\tAutoScalingGroupNames: batch,\n\t\t\t}","sourceCodeStart":832,"sourceCodeEnd":868,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/awsup/aws_cloud.go#L832-L868","documentation":"A paginated autoscaling DescribeTags call (filtering tag values by the cluster's tags to discover cluster-owned ASGs) failed on a page fetch. Fires on AWS API errors, throttling, or missing autoscaling:DescribeTags permission.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/awsup/aws_cloud.go:850 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify IAM permission autoscaling:DescribeTags","Check for throttling in the wrapped error and retry after a backoff","Confirm the AWS region configured for the cluster matches where the resources live"],"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-12T07:17:12.445Z"}