Skip to main content

Community contributed Google Cloud Platform integration

Project description

dagster-contrib-gcp

Test

make test

Build

make build

Overview

This package provides integrations with Google Cloud Platform (GCP) services. It currently includes the following integrations:

Cloud Run

Cloud Run run launcher

Adds support for launching Dagster runs on Google Cloud Run. Usage is as follows:

  1. Create a Cloud Run Job from your Dagster code location image to act as the run worker. If you require multiple environments/code locations, you can create multiple Cloud Run Jobs.
  2. Add dagster-contrib-gcp to your Dagster webserver/daemon environment.
  3. Add the following configuration to your Dagster instance YAML:
run_launcher:
  module: dagster_contrib_gcp.cloud_run.run_launcher
  class: CloudRunRunLauncher
  config:
    project:
      env: GOOGLE_CLOUD_PROJECT
    region:
      env: GOOGLE_CLOUD_REGION
    job_name_by_code_location:
      my-code-location-1: my-cloud-run-job-1
      # Optional Configuration
      my-code-location-2: 
        name: my-cloud-run-job-2
        project_id: 
          secret_name: SOME_GCP_SECRET
        region:
          env: A_DIFFERENT_GOOGLE_CLOUD_REGION

Code Location Configuration

The following configurations are supported per code-location:

# No customizations
my-code-location-1: my-cloud-run-job-1

# Environment Variable or Secrets Manager references
my-code-location-1: 
  name: my-cloud-run-job-1
  project_id:
    secret_name: A_GCP_SECRET_NAME
  region:
    env: SOME_ENVIRONMENT_VARIABLE

# Explicit in-line declaration
my-code-location-1: 
  name: my-cloud-run-job-1
  project_id: gcp_123
  region: us-central1

# Multi-container support - which container to override on run
my-code-location-1: 
  name: my-cloud-run-job-1
  project_id: gcp_123
  region: us-central1
  container_name: my-dagster-container-name

Additional steps may be required for configuring IAM permissions, etc. In particular:

  • Ensure that the webserver/daemon environment has the necessary permissions to execute the Cloud Run jobs
  • Ensure the webserver/daemon can access Secret Manager (if using code location configuration with Secret Manager)
  • Ensure that the Cloud Run run worker jobs have the necessary permissions to execute your Dagster runs See the Cloud Run documentation for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dagster_contrib_gcp-0.0.9.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dagster_contrib_gcp-0.0.9-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file dagster_contrib_gcp-0.0.9.tar.gz.

File metadata

  • Download URL: dagster_contrib_gcp-0.0.9.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dagster_contrib_gcp-0.0.9.tar.gz
Algorithm Hash digest
SHA256 d3109e8455cd2b73c094db0c6a4d354d6ede6b6fec00d2fe4ed75ef4ba99073c
MD5 0500813a3be91a691ae8fa76d3a2d37e
BLAKE2b-256 32258bdceb945f0d202280da2dc0421c537cca1c788bdd180a9202c250b9dbb1

See more details on using hashes here.

File details

Details for the file dagster_contrib_gcp-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: dagster_contrib_gcp-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dagster_contrib_gcp-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 0cf08333a4280cfa262243632b9908f9c813527ffe273943f37c06def052861b
MD5 68f166bd76dc2d94336019b514962efd
BLAKE2b-256 51da2b99afb516f4b293004317b9b3a41d485bf80a703e599752c5474b4894c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page