{"record":{"id":"03c78867c9c527a1","repo":"kubernetes/kops","slug":"error-listing-sqs-queues-v-03c788","errorCode":null,"errorMessage":"error listing SQS queues: %v","messagePattern":"error listing SQS queues: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/awstasks/sqs.go","lineNumber":71,"sourceCode":"\nfunc (q *SQS) CompareWithID() *string {\n\treturn q.ARN\n}\n\nfunc (q *SQS) Find(c *fi.CloudupContext) (*SQS, error) {\n\tctx := c.Context()\n\tcloud := awsup.GetCloud(c)\n\n\tif q.Name == nil {\n\t\treturn nil, nil\n\t}\n\n\tresponse, err := cloud.SQS().ListQueues(ctx, &sqs.ListQueuesInput{\n\t\tMaxResults:      aws.Int32(2),\n\t\tQueueNamePrefix: q.Name,\n\t})\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"error listing SQS queues: %v\", err)\n\t}\n\tif response == nil || len(response.QueueUrls) == 0 {\n\t\treturn nil, nil\n\t}\n\tif len(response.QueueUrls) != 1 {\n\t\treturn nil, fmt.Errorf(\"found multiple SQS queues matching queue name\")\n\t}\n\turl := response.QueueUrls[0]\n\n\tattributes, err := cloud.SQS().GetQueueAttributes(ctx, &sqs.GetQueueAttributesInput{\n\t\tAttributeNames: []sqstypes.QueueAttributeName{sqstypes.QueueAttributeNameMessageRetentionPeriod, sqstypes.QueueAttributeNamePolicy, sqstypes.QueueAttributeNameQueueArn},\n\t\tQueueUrl:       aws.String(url),\n\t})\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"error getting SQS queue attributes: %v\", err)\n\t}\n\tactualPolicy := attributes.Attributes[\"Policy\"]\n\tactualARN := attributes.Attributes[\"QueueArn\"]","sourceCodeStart":53,"sourceCodeEnd":89,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/awstasks/sqs.go#L53-L89","documentation":"ListQueues failed at the start of SQS task discovery (e.g. for the external-dns / cluster-autoscaler event queue); the AWS SQS API call itself errored — permissions, wrong region, or throttling.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/awstasks/sqs.go:71 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check sqs:ListQueues permissions for the credentials in use","Verify the AWS region matches where the queue is expected","Retry after transient throttling errors"],"exampleFix":null,"handlingStrategy":"try-catch","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"}