GithubHelp home page GithubHelp logo

amritofficial / cloud_function_gcp Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 14 KB

A GCP Cloud Function implementation for file filtering and validation on file upload to Google Cloud Storage (GCS)

Python 100.00%

cloud_function_gcp's Introduction

About the project

The project makes use of Google Cloud Function to respond to a file upload event on Google Storage Bucket and does the file processing and uploading those files to two new buckets

Getting Started

The bucket is a standard regional setup with zone as us-central1 (Montreal) and uses uniform bucket-level access

Prerequisites

What things you need to install the software and how to install them

gcloud
python3.7

Installing and Deployment

To run the project, the user could simply run the following command that would deploy code to Google Cloud Function

  1. Change directory to enter validate_products directory
cd functions/validate_products

Note: Make sure you have .env.yaml file inside validate_products directory, the file will be used to set all the environment variables

  1. Run the following command to deploy the cloud function. Follow Google Cloud Storage Documentation for more details
gcloud functions deploy function-validate-file --runtime python37 --env-vars-file .env.yaml --trigger-bucket product-consumables

Triggering the Cloud Function

Upload a file to Google Cloud Storage bucket product-consumables, it will trigger the event

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc

cloud_function_gcp's People

Contributors

amritofficial avatar amritpal26 avatar

Watchers

 avatar

Forkers

ava-bhagya

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.