Docker cloud swarms

I using the ‘beta’ swarms with some success via I’m wondering if there is a way I can launch the same kind of swarm running on a service provider like AWS or Azure via a docker cloud command line or API. I’m not sure where to start. I have seen which seems relevant but I haven’t been able to relate it to my needs. Am I on the right track? Is there another resource anywhere that would be more like a tutorial in this regard?

Thanks in advance.