Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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-20240827224824-d3c206e84188
  • Source
  • Go
  • Socket score

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.

  1. Create a bucket in Google Cloud Storage (or reuse an existing one). The Firestore backups will be written to this bucket.
  2. Enter the name of that bucket in script.sh.
  3. 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.)
  4. Enter your Google Cloud project ID in deploy.sh/deploy.bat.
  5. Run deploy.sh/deploy.bat to deploy the Cloud Run service.

FAQs

Package last updated on 27 Aug 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc