我试图改变我的本地堆栈队列参数之一,但它不起作用。我得到以下错误:
aws sqs set-queue-attributes --queue-url http://localhost:4566/000000000000/BatchReadyToProcessRequest --attribute VisibilityTimeout=3600
An error occurred (InvalidAddress) when calling the SetQueueAttributes operation: The address https://sqs.us-east-2.amazonaws.com/ is not valid for this endpoint.
当我使用localstack时,知道为什么它试图与amazonaws.com交谈吗?
队列名称正确,因为它是由命令
返回的aws --endpoint-url=http://localhost:4566 sqs list-queues
我遵循这些文档:https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sqs/set-queue-attributes.html
jacek
这可能已经太晚了,但是您是否尝试将--endpoint-url=http://localhost:4566
添加到set-queue-attributes
调用中?