Open bvenkysubbu opened 6 years ago
Have you tried changing the messaging URL to use amqps://
:
[messaging]
url = amqps://user:pass@127.0.0.1:5672/
Reference: https://www.rabbitmq.com/uri-spec.html
Where can I specify this on the command line? This is what I am trying to do -
$ st2 run rabbitmq.list_exchanges host=mustang.rmq.cloudamqp.com port=443 virtual_host=itweicph username=itweicph password=some-password
Here is the result -
ERROR: 400 Client Error: Bad Request
MESSAGE: Additional properties are not allowed ('host', 'virtual_host' were unexpected) for url: http://127.0.0.1:9101/v1/executions
@bvenkysubbu Sorry, i didn't read this case clearly enough, i thought this was for the main StackStorm project.
It doesn't look like that action supports the SSL flag: https://github.com/StackStorm-Exchange/stackstorm-rabbitmq/blob/master/actions/list_exchanges.py
PRs are welcome!
Will attempt to add this feature. Thanks @nmaludy
The SSL parameter is only one part of it. The only parameter that list_exchanges
supports today is vhost
. Looks like it would be trivial to add an optional host parameter, and an SSL flag.
As a workaround, if all you want to do is use the rabbitmqadmin
command, then just call that with core.local
.
I am unable to find a way to pass the ssl parameter using rabbitmq integration for stackstorm. I am trying to run the following command using stackstorm.
$ rabbitmqadmin --host=mustang.rmq.cloudamqp.com --port=443 --vhost=itweicph --username=itweicph --password=some-password --ssl list exchanges
How can I pass the "--ssl" flag?