Skip to content

AWS SQS Queue regression on v2.17.0 - queueURLFromEnv not working #6712

@wiktor-golonka

Description

@wiktor-golonka

Report

Hi,

We believe a regression was introduced in v2.17.0, likely in the following commit:
5c58849

This seems to have broken support for queueURLFromEnv, resulting in the following error:

KEDAScalerFailed - (combined from similar events): operation error SQS: GetQueueAttributes, https response error StatusCode: 400, RequestID: a (..), AWS.SimpleQueueService.NonExistentQueue: The specified queue does not exist.

As a workaround, switching to queueUrl works as expected.

Expected Behavior

Setting queue url inside queueURLFromEnv works

Actual Behavior

Setting queue url via queueURLFromEnv - results in ScaledJob error:
KEDAScalerFailed - (combined from similar events): operation error SQS: GetQueueAttributes, https response error StatusCode: 400, RequestID: a (..), AWS.SimpleQueueService.NonExistentQueue: The specified queue does not exist.

Steps to Reproduce the Problem

  1. Create a ScaledJob with aws-sqs-queue trigger with queueURLFromEnv.

Logs from KEDA operator

No response

KEDA Version

2.17.0

Kubernetes Version

None

Platform

Amazon Web Services

Scaler Details

AWS SQS Queue

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Ready To Ship

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions