SSH and Logs by Process Group (CLI)

Hi,

I’m using the new processes feature to create to process groups:

[processes]
  api = "npm run api"
  worker = "npm run worker"

Sometimes I’d like to check logs for a single process type. Often I’d like to SSH into a worker instance.

Currently my pattern for that is:

 % fly status

[...]

Instances
ID              PROCESS VERSION REGION  DESIRED STATUS  HEALTH CHECKS   RESTARTS        CREATED 
12345678        worker  21      den     run     running                 0               32s ago 
87654321        web     21      den     run     running 1 total         0               32s ago 

Then I copy/paste the instance ID.

To SSH into the worker instance, I do:

fly ssh console --address 12345678.vm.my_app_name.internal

And for logs I do:

fly logs -i 12345678 

The instance ID changes with every deploy, so this is fairly cumbersome.

It would be much more convenient to do something like this:

fly ssh console --group worker
fly logs --group worker

Am I missing a better way to do this?

If not, could this go on the roadmap?

Thanks!