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:
- 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.
- Add
dagster-contrib-gcpto your Dagster webserver/daemon environment. - 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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dagster_contrib_gcp-0.0.4.tar.gz.
File metadata
- Download URL: dagster_contrib_gcp-0.0.4.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc6d2b1cef408399f529149ff9aefa7b7411d143e5ca35d05016a81c34f7a522
|
|
| MD5 |
b938b5ec5d708ac5010d20620e68ed62
|
|
| BLAKE2b-256 |
8bbea573e76335b111fb87ada847af71969aff492bad84008e81d7481364de28
|
File details
Details for the file dagster_contrib_gcp-0.0.4-py3-none-any.whl.
File metadata
- Download URL: dagster_contrib_gcp-0.0.4-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9639d2bb3794c23fe2ecd90f914d9e1349f2374714f4aa9dd89378f4baedfb4
|
|
| MD5 |
b6833016a416c09ec10b8b1bcda07c84
|
|
| BLAKE2b-256 |
4fff1b4f2f6a150a724cc7dd34ee84f1ab8ca349d8c29e02f508347d4c301c14
|