[x] I use the full SQS queue URL (it doesn't work with just the queue name)
[x] Verifying the SQS queue on Jenkins returns "Verified SQS Queue https://sqs.eu-west-1..."
[x] Jenkins successfully configures the SQS hook on github
[x] Testing the SQS hook on github returns "Test payload deployed!"
Reply from github support:
We're getting an error from Amazon:
The specified queue does not exist for this wsdl version
It looks like it's trying to write to this queue:
https://sqs.eu-west-1....
Time to confirm that everything is set up correctly (using awscli, same credentials as the ones in github):
# sqs alias
alias sqs="aws --queue-url='https://sqs.eu-west-1...' sqs"
# sending a message
sqs send-message --message-body="Hi"
{
"MD5OfMessageBody": "c1a5298f939e87e8f962a5edfc206918",
"MessageId": "a2715530-cc06-48aa-8692-6892a9bf6f4b"
}
# retrieving the message
sqs receive-message
{
"Messages": [
{
"Body": "Hi",
"ReceiptHandle": "gH2qdC6bjNvDXM2rlDAF4Bx168zOKY8Ky4FB9tUUpt8t8tMqElNiRFnNJObf9LfCpMA+EchFz6N7+olcORefh4EZc0QIL0ObYq6Lw9T28+btG1WHUxYOkbeiah/O7Rx8LsKXHsHA4+jFCojXK8+cgdH5Wx1XnXdNBZsqYHrIr9GzL1ybb6Pm/rwQf3DGIIgUZxUngZLv1+fa41tNrQZugxXh5cg3+UHl34bL1kJVrGm5Dl44I18TXzH1wLb31gar94ER21FR+RUikevcH2oKaTABHgyyvwjKiLGqOsqhtH0=",
"MD5OfBody": "c1a5298f939e87e8f962a5edfc206918",
"MessageId": "a2715530-cc06-48aa-8692-6892a9bf6f4b"
}
]
}
# deleting message
sqs delete-message --receipt-handle="gH2qdC6bjNvDXM2rlDAF4Bx168zOKY8Ky4FB9tUUpt8t8tMqElNiRFnNJObf9LfCpMA+EchFz6N7+olcORefh4EZc0QIL0ObYq6Lw9T28+btG1WHUxYOkbeiah/O7Rx8LsKXHsHA4+jFCojXK8+cgdH5Wx1XnXdNBZsqYHrIr9GzL1ybb6Pm/rwQf3DGIIgUZxUngZLv1+fa41tNrQZugxXh5cg3+UHl34bL1kJVrGm5Dl44I18TXzH1wLb31gar94ER21FR+RUikevcH2oKaTABHgyyvwjKiLGqOsqhtH0="
Having looked around, the error github support came back with might be related to defaulting to a different AWS region (us-east-1 in particular). Just to confirm this was not the case, I've created an SQS queue with the same name in us-east-1, confirming everything works with the same credentials:
# sqs alias
alias sqs="aws --queue-url='https://sqs.us-east-1...' sqs"
# sending a message
sqs send-message --message-body="Hi, us-east-1 here"
{
"MD5OfMessageBody": "c1d26ff26fe72dbb4a011f89a29d7df8",
"MessageId": "631df1ad-d061-40f8-8746-f63d795fdb53"
}
# retrieving the message
sqs receive-message
{
"Messages": [
{
"Body": "Hi, us-east-1 here",
"ReceiptHandle": "gH2qdC6bjNv3OF0duu3zOxx168zOKY8KNMq/1grzc8OPZI8SzpH+5WGVE6XJrzpNbWbtYqGi5TBsGrlNYMC2G5ZRyyQ1UeuLyLkgW4pMlzRT+ilZPG+Mf4imdJ9ElcElxg4Df5ci8RFpPSN4lV8RN0BrJjfoeQDRQOn/RIxtAH9H4C4NasSLODB1xJWcO/KsZYRch0IWL8+Kn3scUwFXCKGar31CY9BCluS14uc5aVDLzL8YuQ3r56nF3vYGPlijESOxN5H8K5QNgevC48ysFnT3yaSvN9LutFgLo2wcVEs=",
"MD5OfBody": "c1d26ff26fe72dbb4a011f89a29d7df8",
"MessageId": "631df1ad-d061-40f8-8746-f63d795fdb53"
}
]
}
# deleting the message
sqs delete-message --receipt-handle="gH2qdC6bjNv3OF0duu3zOxx168zOKY8KNMq/1grzc8OPZI8SzpH+5WGVE6XJrzpNbWbtYqGi5TBsGrlNYMC2G5ZRyyQ1UeuLyLkgW4pMlzRT+ilZPG+Mf4imdJ9ElcElxg4Df5ci8RFpPSN4lV8RN0BrJjfoeQDRQOn/RIxtAH9H4C4NasSLODB1xJWcO/KsZYRch0IWL8+Kn3scUwFXCKGar31CY9BCluS14uc5aVDLzL8YuQ3r56nF3vYGPlijESOxN5H8K5QNgevC48ysFnT3yaSvN9LutFgLo2wcVEs="