์๋ ํ์ญ๋๊น,
"aws sqs get-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
์๋