You can pass in a system property to each instance that will define the groups an instance will automatically attach itself to one or multiple groups in the cloud.
This argument can take a comma-separated list
-Dfr.cloud.group=group1,group2
For a full list of configurable options see the documentation.