Amazon MQ: Can not connect localhost RMQ shovel with AWS RMQ

0

I have a local host (private not secured) RMQ server on my computer. I want to create a shovel that communicates with Amazon's RMQ; only port 5671 (secured) is opened for AWS.

  1. The shovel is created locally on my computer with the parameters below Enter image description here

No matter what I tried the shovel can not communicate with Amazon's RMQ. What are the correct parameters to make them communicate?

  1. I suppose the two RMQs can communicate with port 5672 (not secured) as I test it with a 3rd party service like sparrow.rmq.cloudamqp.com. The question is if there is any way to communicate both of them with **amqps **protocol (secured) in port 5671, especially for the local host that can not get a public CA certificate.
asked 4 months ago130 views
2 Answers
0

Hi,

This detailled guidance explaining how to set up a shovel should help you in fixing your problem: https://repost.aws/knowledge-center/mq-rabbitmq-shovel-plugin-setup

Best,

Didier

profile pictureAWS
EXPERT
answered 4 months ago
0

Didier,

It does not work! It hangs to "starting"

logs


2024-01-17 11:09:12.578000+02:00 [error] <0.7628.0> Shovel 'test1' failed to connect (URI: amqps://b-fc4f7786-7bec-472d-95ad-7eed998bb9ae.mq.eu-north-1.amazonaws.com:5671): {options,incompatible,[{verify,verify_peer},{cacerts,undefined}]}
2024-01-17 11:09:12.578000+02:00 [error] <0.7628.0> Shovel 'test1' has no more URIs to try for connection
2024-01-17 11:09:12.578000+02:00 [error] <0.7628.0> Shovel 'test1' could not connect to source: error failed_to_connect_using_provided_uris
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>     supervisor: {<0.7448.0>,rabbit_shovel_dyn_worker_sup}
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>     errorContext: child_terminated
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>     reason: shutdown
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>     offender: [{pid,<0.7628.0>},
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>                {id,{<<"/">>,<<"test1">>}},
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>                {mfargs,
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>                    {rabbit_shovel_worker,start_link,
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>                        [dynamic,
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>                         {<<"/">>,<<"test1">>},
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>                         [{<<"dest-uri">>,
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>                           [{encrypted,
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>                                <<"4fbzOyVg5/S+bVEPRwGrRbnJOs6n+kse8cnLFoMhlzuwAcsI6rqZ4OqpAaKWcAWN6v3fNruRx9t/h76JnjgNPiF5VG1JJa9RAGrE9oCUh5naOs/Mvze9bbaxu33PbLT6Ywl+lnt+nUvKWFsJ3taRxw==">>}]},
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>                          {<<"src-uri">>,
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>                           [{encrypted,
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>                                <<"m3/546zDc6YDZJOkFxR4z/AB2fVfdiXRNmQy7j73ozHuqyXk+T2bK+YEf6veQ87ayW14zwtJQiHsRPXe7Yrdln5fmdS+zski1cbkxe2grgIYS4Rd5/AZ7y7Ej2HOcupYZdk0FvLfTyODHUvsOEWxS9rX8ssoq4jxULFvBz36sQLt/yGGNzISKF/yjv/pRUM3L/9zRZQBsqfdkasPznm1Toh2hMsfmNJ+fzq8p/CZ4L0=">>}]},
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>                          {<<"ack-mode">>,<<"on-confirm">>},
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>                          {<<"dest-add-forward-headers">>,false},
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>                          {<<"dest-protocol">>,<<"amqp091">>},
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>                          {<<"dest-queue">>,<<"q1">>},
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>                          {<<"src-delete-after">>,<<"never">>},
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>                          {<<"src-protocol">>,<<"amqp091">>},
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>                          {<<"src-queue">>,<<"q1">>}]]}},
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>                {restart_type,{permanent,5}},
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>                {shutdown,4294967295},
2024-01-17 11:09:12.579000+02:00 [error] <0.7448.0>                {child_type,worker}]

Enter image description here

answered 4 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions