-2

I want to run a bash script located on a VM instance from Google cloud function. Is there something that compute engine client library provide? I have been searching for solution but so far found that only start/stop can be triggered from cloud function.

2
  • Does this answer your question? stackoverflow.com/questions/59196113/…
    – Alex G
    Apr 26, 2021 at 14:37
  • @AlexG Thank you for your response. I looked at it before posting here. That question was asked about a year and a half ago and I was wondering if anything had changed since then. Apr 27, 2021 at 5:50

1 Answer 1

1

I would suggest you go for Google's Cloud Run. Just like Cloud Functions, Cloud Run is serverless (you don't provision any servers and it scales to zero) but the distinction is that what is executed is a docker container.

Within that container, your "code" is executed in the container environment when called. Since it is running in a container, you can run bash script and providing any scripts or other environment needed to be able to run.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.