Skip to content

Instantly share code, notes, and snippets.

@gvyshnya
Created July 20, 2021 21:52
Show Gist options
  • Save gvyshnya/6aabb6020dc56b699fd8566a29b9d3b9 to your computer and use it in GitHub Desktop.
Save gvyshnya/6aabb6020dc56b699fd8566a29b9d3b9 to your computer and use it in GitHub Desktop.
This is the makefile to automate useful Dataproc-related deployment routines
REGION="europe-west1"
ZONE="europe-west1-b"
TEMPLATE_ID="download_production_table"
dev_dataproc_assets_bucket="gs://your-dataproc-assets-bucket/production/"
dev_project=your-gcp-project-id
upload_assets:
gsutil cp main.py ${dev_dataproc_assets_bucket} --region ${REGION} --project ${dev_project}
upload_template:
gcloud dataproc workflow-templates import ${TEMPLATE_ID} --region ${REGION} --source workflow-tmpl.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment