Skip to content

Instantly share code, notes, and snippets.

@Felipeache
Felipeache / start_dataflow.py
Created June 9, 2021 14:05
Cloud Function to start a Dataflow Job when a new file is created in a Bucket
"""
requirements:
google-api-client==3.14.159265359.post1
google-cloud-storage==1.36.1
oauth2client==4.1.3
"""
from googleapiclient.discovery import build
from os import getenv
from requests import post
import logging

Keybase proof

I hereby claim:

  • I am felipeache on github.
  • I am luis_f_henao (https://keybase.io/luis_f_henao) on keybase.
  • I have a public key ASCV150zK0VF0OVTEy01PMO5Xe5HyubERdA140eb8M-cdgo

To claim this, I am signing this object: