Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Inexpensive way to run a large number of remote ssh commands?

Hi there!  We have a step in our workflow that requires sending a large number (say 5000+) of simple ssh commands to an external server using ssh keys to authenticate -- ideally this would be triggered from a pub/sub.  I was wondering what the cheapest way to accomplish this in GCP is?  We were wondering if pub/sub can directly send an ssh command to an external server?  Or would we need some sort of cloudrun that does nothing but runs ssh over and over again?

Are there any example of this out in the world?  Thanks!

0 17 2,231