ActiveMQ on AWS not working with AMQP nodes

I’m having issues making the AMQP nodes work with ActiveMQ on AWS. The trigger node is not able to resolve messages in ActiveMQ. I have a local installation which currently runs on docker. I got this error message from docker logs.

[connection-1] error on read: ProtocolError: Invalid protocol header for AMQP §♥♥ (buffer:0x15,0x03,0x03,0x00,0x02,0x02,0x0a,0x15,0x03,0x03,0x00,0x02,0x02,0x0a)

the error shows n8n is getting TLS/SSL data back when it expects the AMQP protocol - AWS ActiveMQ uses port 5671 for AMQPS but you might need to check if they require a specific protocol version or if your broker is configured for AMQP 1.0 (n8n uses 0.9.1 by default).

try switching the port to 61617 which is ActiveMQ’s OpenWire+SSL port, or if you need AMQP specifically, make sure your AWS broker has AMQP enabled and youre using the right endpoint - AWS sometimes has different URLs for different protocols. also double check the Transport Type - if the port expects SSL/TLS to be negotiated differently you might need to adjust that setting.

lmk if switching ports helps or if you need the specific AWS ActiveMQ endpoint config