🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/googlecloudplatform/serverless-expeditions/serverless-shell-scripts

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/googlecloudplatform/serverless-expeditions/serverless-shell-scripts

v0.0.0-20250114014956-642a00044e76
Source
Go
Version published
Created
Source

This Cloud Run service demonstrates how to run a shell script in the cloud. It does so by running a Firestore backup operation when the Cloud Run services's URL is accessed. Replace the contents on script.sh with whatever shell script you need to run in the cloud.

  • Create a bucket in Google Cloud Storage (or reuse an existing one). The Firestore backups will be written to this bucket.
  • Enter the name of that bucket in script.sh.
  • Grant these permissions to the service account that executes the Cloud Run service. The default account will be xxxxxxxxxxxx-compute@developer.gserviceaccount.com also known as the "Default compute service account".
    • Cloud Datastore Import Export Admin.
    • Storage Admin, for the Cloud Storage bucket. (If you are using the "Default compute service account", no need to add this permission. It already has it.)
  • Enter your Google Cloud project ID in deploy.sh/deploy.bat.
  • Run deploy.sh/deploy.bat to deploy the Cloud Run service.

FAQs

Package last updated on 14 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts