こんにちは、
「awssqsget-queue-attributes」を使用すると、結果は常に空白になります。
$ aws sqs get-queue-attributes --queue-url https://queue.amazonaws.com/1234/sample_queue
{
"ResponseMetadata": {
"RequestId": "edfaceaa-a8a6-59b6-9e75-87f13e5d1da6"
}
}
また、特定の属性(AllまたはApproximateNumberOfMessagesNotVisibleなど)を指定しようとすると、エラーが発生します。
$ aws sqs get-queue-attributes --queue-url https://queue.amazonaws.com/1234/sample_queue --attribute-names ApproximateNumberOfMessagesNotVisible
{
"ErrorResponse": {
"RequestId": "7e742e72-b760-5881-a799-672920ab7f3b",
"Error": {
"Message": "Top level element may not be treated as a list",
"Code": "MalformedInput",
"Type": "Sender",
"Detail": ""
}
}
}
A client error (Unknown) occurred: Unknown
手伝ってもらえたら教えてください。 素晴らしいツールをありがとう!
マーン
これは、0.4.5リリースと開発ブランチで修正されるはずです。
--attribute-names
はオプションのようですが、それがないと何も得られません。
--attributes-names All
試しください
--attribute-names
はオプションのようですが、それがないと何も得られません。
--attributes-names All
試しください
マイナーな修正: --attribute-names
本当にありがとう!
最も参考になるコメント
--attribute-names
はオプションのようですが、それがないと何も得られません。--attributes-names All
試しください