Connect to existing AWS

I have docker swarm cluster installed on AWS using cloudformation template provided by docker. (latest version)

How can I connect to one of swarm managers using docker machine ?

I’ve tried using docker machine AWS driver with all possible parameters , but I was not able to connect.

Also tried using docker machine general driver , it returns “os not supported”.

Any help will be greatly appreciated ,